* mlibc/include/stdarg.h (longjmp, setjmp): Declare.
* mlibc/libc-mes+tcc.c (longjmp, setjmp): Add stub.
#else // ! (__GNUC__ && POSIX)
typedef int jmp_buf;
+void longjmp (jmp_buf env, int val);
+int setjmp (jmp_buf env);
#endif // ! (__GNUC__ && POSIX)
*/
#include <libc-mes.c>
+#include <setjmp.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
return 0;
}
+void
+longjmp (jmp_buf env, int val)
+{
+}
+
void *
memcpy (void *dest, void const *src, size_t n)
{
{
}
+int
+setjmp (jmp_buf env)
+{
+ return 0;
+}
+
int
snprintf(char *str, size_t size, char const *format, ...)
{