mes/scaffold
Jan Nieuwenhuizen 996c449a81 mescc: Add getenv.
* 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.
2017-04-17 02:24:20 +02:00
..
b-0.mes mescc: Run module/base-0.mes. 2017-03-26 21:13:01 +02:00
cons-mes.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
hello.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
m.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
malloc.c build: Refactor. 2017-04-12 21:27:59 +02:00
mesmes build: Refactor. 2017-04-12 21:27:59 +02:00
micro-mes.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
mini-mes.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
scaffold.make mescc: Add getenv. 2017-04-17 02:24:20 +02:00
t-0.mes mescc: Run module/base-0.mes. 2017-03-26 21:13:01 +02:00
t.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00
tiny-mes.c mescc: Add getenv. 2017-04-17 02:24:20 +02:00