mes/scaffold
Jan Nieuwenhuizen 45ce77df85 core: Add current-output-port, open-output-file, set-current-output-port.
* libc/include/fcntl.h: Declare it.  Add some fcntl defines.
* libc/include/stdio.h: Remove fcntl defines, Declare g_stdout.
* module/language/c99/compiler.mes (c99-input->ast): Define O_WRONLY, O_RDWR.
* module/mes/guile.mes (with-output-to-file, with-output-to-port): New functions.
* src/posix.c (current_output_port, open_output_file,
  set_current_output_port): New functions.
* libc/mlibc.c (open): Add optional mode parameter.
* module/mes/libc-i386.mes (i386:open): Forward third parameter.
* scaffold/mini-mes.c (main): Init g_stdout.
* src/mes.c (main): Likewise.
2017-05-19 06:56:47 +02:00
..
b-0.mes mescc: Run module/base-0.mes. 2017-03-26 21:13:01 +02:00
cons-mes.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
hello.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
m.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
malloc.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
mesmes build: Refactor. 2017-04-12 21:27:59 +02:00
micro-mes.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
mini-mes.c core: Add current-output-port, open-output-file, set-current-output-port. 2017-05-19 06:56:47 +02:00
scaffold.make mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00
t-0.mes mescc: Run module/base-0.mes. 2017-03-26 21:13:01 +02:00
t.c mescc: Add strcpy. 2017-05-08 21:15:53 +02:00
tiny-mes.c mescc: Support regular C99 compile, headers + mlibc. 2017-05-02 23:30:46 +02:00