make include headers follow strict protoype rule (#331)

This commit is contained in:
Karl Fessel 2020-08-04 13:53:34 +02:00 committed by GitHub
parent 2db335c6d4
commit 37aae1bc49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 6 deletions

View File

@ -81,7 +81,7 @@ set_error_buf_v(char *error_buf, uint32 error_buf_size, const char *format,
/* See wasm_export.h for description */ /* See wasm_export.h for description */
bool bool
wasm_runtime_init(); wasm_runtime_init(void);
/* See wasm_export.h for description */ /* See wasm_export.h for description */
bool bool
@ -89,7 +89,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
/* See wasm_export.h for description */ /* See wasm_export.h for description */
void void
wasm_runtime_destroy(); wasm_runtime_destroy(void);
/* See wasm_export.h for description */ /* See wasm_export.h for description */
PackageType PackageType

View File

@ -128,7 +128,7 @@ typedef struct RuntimeInitArgs {
* @return true if success, false otherwise * @return true if success, false otherwise
*/ */
bool bool
wasm_runtime_init(); wasm_runtime_init(void);
/** /**
* Initialize the WASM runtime environment, and also initialize * Initialize the WASM runtime environment, and also initialize
@ -146,7 +146,7 @@ wasm_runtime_full_init(RuntimeInitArgs *init_args);
* Destroy the WASM runtime environment. * Destroy the WASM runtime environment.
*/ */
void void
wasm_runtime_destroy(); wasm_runtime_destroy(void);
/** /**
* Allocate memory from runtime memory environment. * Allocate memory from runtime memory environment.

View File

@ -25,13 +25,13 @@ extern "C" {
* *
* @return 0 if success * @return 0 if success
*/ */
int bh_platform_init(); int bh_platform_init(void);
/** /**
* Destroy the platform internal resources if needed, * Destroy the platform internal resources if needed,
* this function is called by wasm_runtime_destroy() * this function is called by wasm_runtime_destroy()
*/ */
void bh_platform_destroy(); void bh_platform_destroy(void);
/** /**
******** memory allocator APIs ********** ******** memory allocator APIs **********