mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-03-11 16:35:33 +00:00
make include headers follow strict protoype rule (#331)
This commit is contained in:
parent
2db335c6d4
commit
37aae1bc49
|
@ -81,7 +81,7 @@ set_error_buf_v(char *error_buf, uint32 error_buf_size, const char *format,
|
|||
|
||||
/* See wasm_export.h for description */
|
||||
bool
|
||||
wasm_runtime_init();
|
||||
wasm_runtime_init(void);
|
||||
|
||||
/* See wasm_export.h for description */
|
||||
bool
|
||||
|
@ -89,7 +89,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
|
|||
|
||||
/* See wasm_export.h for description */
|
||||
void
|
||||
wasm_runtime_destroy();
|
||||
wasm_runtime_destroy(void);
|
||||
|
||||
/* See wasm_export.h for description */
|
||||
PackageType
|
||||
|
|
|
@ -128,7 +128,7 @@ typedef struct RuntimeInitArgs {
|
|||
* @return true if success, false otherwise
|
||||
*/
|
||||
bool
|
||||
wasm_runtime_init();
|
||||
wasm_runtime_init(void);
|
||||
|
||||
/**
|
||||
* Initialize the WASM runtime environment, and also initialize
|
||||
|
@ -146,7 +146,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
|
|||
* Destroy the WASM runtime environment.
|
||||
*/
|
||||
void
|
||||
wasm_runtime_destroy();
|
||||
wasm_runtime_destroy(void);
|
||||
|
||||
/**
|
||||
* Allocate memory from runtime memory environment.
|
||||
|
|
|
@ -25,13 +25,13 @@ extern "C" {
|
|||
*
|
||||
* @return 0 if success
|
||||
*/
|
||||
int bh_platform_init();
|
||||
int bh_platform_init(void);
|
||||
|
||||
/**
|
||||
* Destroy the platform internal resources if needed,
|
||||
* this function is called by wasm_runtime_destroy()
|
||||
*/
|
||||
void bh_platform_destroy();
|
||||
void bh_platform_destroy(void);
|
||||
|
||||
/**
|
||||
******** memory allocator APIs **********
|
||||
|
|
Loading…
Reference in New Issue
Block a user