mes/module/language
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
..
c mescc: Refactor libc. 2017-04-02 12:29:09 +02:00
c99 mescc: Add getenv. 2017-04-17 02:24:20 +02:00
paren.mes Add loadable modules. 2016-12-12 20:35:19 +01:00