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

@ -1245,7 +1245,9 @@ wasm_native_func_lookup(const char *module_name, const char *func_name)
uint32 size = sizeof(native_func_defs) / sizeof(WASMNativeFuncDef);
WASMNativeFuncDef *func_def = native_func_defs;
WASMNativeFuncDef *func_def_end = func_def + size;
#if WASM_ENABLE_WASI != 0
void *ret;
#endif
if (!module_name || !func_name)
return NULL;
@ -1259,9 +1261,6 @@ wasm_native_func_lookup(const char *module_name, const char *func_name)
func_def++;
}
if ((ret = wasm_platform_native_func_lookup(module_name, func_name)))
return ret;
#if WASM_ENABLE_WASI != 0
if ((ret = wasi_native_func_lookup(module_name, func_name)))
return ret;

View File

@ -12,7 +12,7 @@
#ifndef LOCKING_H
#define LOCKING_H
#include "config.h"
#include "ssp_config.h"
#include <assert.h>
#include <errno.h>

View File

@ -9,7 +9,7 @@
//
// Copyright (c) 2016-2018 Nuxi, https://nuxi.nl/
#include "config.h"
#include "ssp_config.h"
#include <sys/types.h>

View File

@ -9,7 +9,7 @@
//
// Copyright (c) 2016 Nuxi, https://nuxi.nl/
#include "config.h"
#include "ssp_config.h"
#include <fcntl.h>
#include <pthread.h>

View File

@ -9,8 +9,8 @@
//
// Copyright (c) 2016 Nuxi, https://nuxi.nl/
#ifndef CONFIG_H
#define CONFIG_H
#ifndef SSP_CONFIG_H
#define SSP_CONFIG_H
#include <stdlib.h>

View File

@ -9,7 +9,7 @@
//
// Copyright (c) 2016 Nuxi, https://nuxi.nl/
#include "config.h"
#include "ssp_config.h"
#include <errno.h>
#include <stdlib.h>

View File

@ -12,7 +12,7 @@
#ifndef STR_H
#define STR_H
#include "config.h"
#include "ssp_config.h"
char *str_nullterminate(const char *, size_t);