Added return value for the node_init

- Can be used as before, but cleaner interface in parser.y
main
Øyvind Skaaden 2022-02-18 17:01:37 +01:00
parent 42eb417939
commit f10d6c459c
1 changed files with 3 additions and 1 deletions

View File

@ -16,8 +16,10 @@ typedef struct n {
* @param *data associated data. Declared void to allow any type
* @param n_children number of children
* @param ... variable argument list of child nodes (node_t *)
*
* @return Pointer to the initialized node
* */
void node_init (
node_t* node_init (
node_t *nd, node_index_t type, void *data, uint64_t n_children, ...
);
#endif