Change the return type of pattern_free.

This commit is contained in:
Danila Fedorin 2017-01-20 23:40:51 -08:00
parent 961136a41b
commit 54670a1f32

View File

@ -163,7 +163,9 @@ typedef struct pattern_chain_s pattern_chain;
liblex_result pattern_compile(pattern_node** root, char* expression); liblex_result pattern_compile(pattern_node** root, char* expression);
/** /**
* Frees a pattern NFA allocated by pattern_compile. * Frees a pattern NFA allocated by pattern_compile.
* @param root the root node to start freeing from.
* @return LIBLEX_SUCCESS if all goes well, otherwise some other liblex_result.
*/ */
void pattern_free(pattern_node* root); liblex_result pattern_free(pattern_node* root);
#endif #endif