mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-08 20:56:13 +00:00
Rename parameter names in wasm_runtime_instantiate (#2045)
This commit is contained in:
parent
d75cb3224f
commit
0ee6e18a06
|
@ -508,8 +508,8 @@ wasm_runtime_deinstantiate_internal(WASMModuleInstanceCommon *module_inst,
|
||||||
|
|
||||||
/* See wasm_export.h for description */
|
/* See wasm_export.h for description */
|
||||||
WASM_RUNTIME_API_EXTERN WASMModuleInstanceCommon *
|
WASM_RUNTIME_API_EXTERN WASMModuleInstanceCommon *
|
||||||
wasm_runtime_instantiate(WASMModuleCommon *module, uint32 stack_size,
|
wasm_runtime_instantiate(WASMModuleCommon *module, uint32 default_stack_size,
|
||||||
uint32 heap_size, char *error_buf,
|
uint32 host_managed_heap_size, char *error_buf,
|
||||||
uint32 error_buf_size);
|
uint32 error_buf_size);
|
||||||
|
|
||||||
/* See wasm_export.h for description */
|
/* See wasm_export.h for description */
|
||||||
|
|
|
@ -467,14 +467,14 @@ wasm_runtime_set_wasi_ns_lookup_pool(wasm_module_t module, const char *ns_lookup
|
||||||
* Instantiate a WASM module.
|
* Instantiate a WASM module.
|
||||||
*
|
*
|
||||||
* @param module the WASM module to instantiate
|
* @param module the WASM module to instantiate
|
||||||
* @param stack_size the default stack size of the module instance when the
|
* @param default_stack_size the default stack size of the module instance when the
|
||||||
* exec env's operation stack isn't created by user, e.g. API
|
* exec env's operation stack isn't created by user, e.g. API
|
||||||
* wasm_application_execute_main() and wasm_application_execute_func()
|
* wasm_application_execute_main() and wasm_application_execute_func()
|
||||||
* create the operation stack internally with the stack size specified
|
* create the operation stack internally with the stack size specified
|
||||||
* here. And API wasm_runtime_create_exec_env() creates the operation
|
* here. And API wasm_runtime_create_exec_env() creates the operation
|
||||||
* stack with stack size specified by its parameter, the stack size
|
* stack with stack size specified by its parameter, the stack size
|
||||||
* specified here is ignored.
|
* specified here is ignored.
|
||||||
* @param heap_size the default heap size of the module instance, a heap will
|
* @param host_managed_heap_size the default heap size of the module instance, a heap will
|
||||||
* be created besides the app memory space. Both wasm app and native
|
* be created besides the app memory space. Both wasm app and native
|
||||||
* function can allocate memory from the heap.
|
* function can allocate memory from the heap.
|
||||||
* @param error_buf buffer to output the error info if failed
|
* @param error_buf buffer to output the error info if failed
|
||||||
|
@ -484,7 +484,7 @@ wasm_runtime_set_wasi_ns_lookup_pool(wasm_module_t module, const char *ns_lookup
|
||||||
*/
|
*/
|
||||||
WASM_RUNTIME_API_EXTERN wasm_module_inst_t
|
WASM_RUNTIME_API_EXTERN wasm_module_inst_t
|
||||||
wasm_runtime_instantiate(const wasm_module_t module,
|
wasm_runtime_instantiate(const wasm_module_t module,
|
||||||
uint32_t stack_size, uint32_t heap_size,
|
uint32_t default_stack_size, uint32_t host_managed_heap_size,
|
||||||
char *error_buf, uint32_t error_buf_size);
|
char *error_buf, uint32_t error_buf_size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user