Remove iwasm/runtime/platform src files, refine interpreter and fix issue of --repl option (#150)
This commit is contained in:
@ -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;
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
#ifndef LOCKING_H
|
||||
#define LOCKING_H
|
||||
|
||||
#include "config.h"
|
||||
#include "ssp_config.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <errno.h>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
//
|
||||
// Copyright (c) 2016-2018 Nuxi, https://nuxi.nl/
|
||||
|
||||
#include "config.h"
|
||||
#include "ssp_config.h"
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
//
|
||||
// Copyright (c) 2016 Nuxi, https://nuxi.nl/
|
||||
|
||||
#include "config.h"
|
||||
#include "ssp_config.h"
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <pthread.h>
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
//
|
||||
// Copyright (c) 2016 Nuxi, https://nuxi.nl/
|
||||
|
||||
#include "config.h"
|
||||
#include "ssp_config.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
#ifndef STR_H
|
||||
#define STR_H
|
||||
|
||||
#include "config.h"
|
||||
#include "ssp_config.h"
|
||||
|
||||
char *str_nullterminate(const char *, size_t);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user