mescc: Mes C Library: Prepare for M2-Planet: fdungetc.

* lib/mes/fdungetc.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2020-05-17 19:28:28 +02:00
parent 04061cbba5
commit fac29c0e7b
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273

View file

@ -19,7 +19,6 @@
*/ */
#include <mes/lib.h> #include <mes/lib.h>
#include <assert.h>
int int
fdungetc (int c, int fd) fdungetc (int c, int fd)
@ -31,7 +30,7 @@ fdungetc (int c, int fd)
eputs (" ***MES C LIB*** fdungetc ungetc buffer overflow fd="); eputs (" ***MES C LIB*** fdungetc ungetc buffer overflow fd=");
eputs (itoa (fd)); eputs (itoa (fd));
eputs ("\n"); eputs ("\n");
assert (0); assert_msg (0, "0");
} }
__ungetc_set (fd, c); __ungetc_set (fd, c);
return c; return c;