996c449a81
* module/mes/libc-i386.mes (i386:_start): Push environment pointer. * module/mes/libc.mes (g_environment): New global. (_env): New function. (_start): Use it to set g_environment. (getenv): New function. * lib/mlibc.c (strncmp): New function. (getenv): Implement. * lib/mstart.c (_start): Set g_environment. * module/mes/libc.mes (strncmp): New function. (libc): Add it. * scaffold/t.c: (array_ref): Test it. |
||
---|---|---|
.. | ||
b-0.mes | ||
cons-mes.c | ||
hello.c | ||
m.c | ||
malloc.c | ||
mesmes | ||
micro-mes.c | ||
mini-mes.c | ||
scaffold.make | ||
t-0.mes | ||
t.c | ||
tiny-mes.c |