Remove iwasm/runtime/platform src files, refine interpreter and fix issue of --repl option (#150)
This commit is contained in:
@ -17,6 +17,7 @@
|
||||
#include <limits.h>
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
/* Platform name */
|
||||
|
||||
@ -115,6 +115,11 @@ double trunc(double x);
|
||||
int signbit(double x);
|
||||
int isnan(double x);
|
||||
|
||||
unsigned long long int strtoull(const char *nptr, char **endptr,
|
||||
int base);
|
||||
double strtod(const char *nptr, char **endptr);
|
||||
float strtof(const char *nptr, char **endptr);
|
||||
|
||||
int bh_platform_init();
|
||||
|
||||
#endif
|
||||
|
||||
@ -27,7 +27,7 @@ static int char_out(int c, struct out_context *ctx)
|
||||
static int bh_vprintk(const char *fmt, va_list ap)
|
||||
{
|
||||
struct out_context ctx = { 0 };
|
||||
_vprintk((out_func_t) char_out, &ctx, fmt, ap);
|
||||
z_vprintk((out_func_t) char_out, &ctx, fmt, ap);
|
||||
return ctx.count;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user