doc: Replace IN with parameter-level doc block

master
Sean McBride 3 years ago
parent a97146a453
commit 10cf211007

@ -17,14 +17,19 @@
#include "tcp_server.h" #include "tcp_server.h"
#include "wasm_table.h" #include "wasm_table.h"
#define IN
/************************* /*************************
* Private Static Inline * * Private Static Inline *
************************/ ************************/
/**
* Initializes a module
*
* @param module
* @param path passes ownership of string to the allocated module if successful
* @returns 0 on success, -1 on error
*/
static inline int static inline int
module_init(struct module *module, IN char *path) module_init(struct module *module, char *path)
{ {
assert(module != NULL); assert(module != NULL);
assert(path != NULL); assert(path != NULL);
@ -94,15 +99,14 @@ module_free(struct module *module)
/** /**
* Module Contructor * Module Contructor
* Creates a new module, invokes initialize_tables to initialize the indirect table, and adds it to the module DB * Allocates and initializes a new module
* *
* @param name * @param path passes ownership of string to the allocated module if successful
* @param path
* @returns A new module or NULL in case of failure * @returns A new module or NULL in case of failure
*/ */
struct module * struct module *
module_alloc(IN char *path) module_alloc(char *path)
{ {
size_t alignment = (size_t)CACHE_PAD; size_t alignment = (size_t)CACHE_PAD;
size_t size_to_alloc = (size_t)round_to_cache_pad(sizeof(struct module)); size_t size_to_alloc = (size_t)round_to_cache_pad(sizeof(struct module));

Loading…
Cancel
Save