Remove iwasm/runtime/platform src files, refine interpreter and fix issue of --repl option (#150)

This commit is contained in:
wenyongh
2019-12-18 11:53:43 +08:00
committed by GitHub
parent 631b7a2403
commit 5875a37f34
43 changed files with 84 additions and 646 deletions

View File

@ -17,6 +17,7 @@
#include <limits.h>
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* Platform name */

View File

@ -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

View File

@ -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;
}