Change arg name 'export' to other to fix keyword conflict in C++11 (#745)

Some of the function arguments were named as "export" in core/iwasm/common/wasm_runtime_common.h, which result in conflicts with the C++11 keyword. Change them to other to fix the compilation error.
This commit is contained in:
Carlos 2021-09-11 12:53:27 +02:00 committed by GitHub
parent ea835db54c
commit e07b58062f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -774,24 +774,24 @@ wasm_runtime_finalize_call_function(WASMExecEnv *exec_env,
bool bool
wasm_runtime_get_export_func_type(const WASMModuleCommon *module_comm, wasm_runtime_get_export_func_type(const WASMModuleCommon *module_comm,
const WASMExport *export, const WASMExport *export_func_type,
WASMType **out); WASMType **out);
bool bool
wasm_runtime_get_export_global_type(const WASMModuleCommon *module_comm, wasm_runtime_get_export_global_type(const WASMModuleCommon *module_comm,
const WASMExport *export, const WASMExport *export_global_type,
uint8 *out_val_type, uint8 *out_val_type,
bool *out_mutability); bool *out_mutability);
bool bool
wasm_runtime_get_export_memory_type(const WASMModuleCommon *module_comm, wasm_runtime_get_export_memory_type(const WASMModuleCommon *module_comm,
const WASMExport *export, const WASMExport *export_memory_type,
uint32 *out_min_page, uint32 *out_min_page,
uint32 *out_max_page); uint32 *out_max_page);
bool bool
wasm_runtime_get_export_table_type(const WASMModuleCommon *module_comm, wasm_runtime_get_export_table_type(const WASMModuleCommon *module_comm,
const WASMExport *export, const WASMExport *export_table_type,
uint8 *out_elem_type, uint8 *out_elem_type,
uint32 *out_min_size, uint32 *out_min_size,
uint32 *out_max_size); uint32 *out_max_size);