Switch pattern compilation code to const char*
This commit is contained in:
@@ -170,7 +170,7 @@ typedef struct pattern_s pattern;
|
||||
* @param id the id of the pattern.
|
||||
* @return LIBLEX_SUCCESS if all goes well, otherwise some other liblex_result.
|
||||
*/
|
||||
liblex_result pattern_compile(pattern* ptrn, char* expression, int id);
|
||||
liblex_result pattern_compile(pattern* ptrn, const char* expression, int id);
|
||||
/**
|
||||
* Frees a pattern NFA allocated by pattern_compile.
|
||||
* @param root the root node to start freeing from.
|
||||
|
||||
Reference in New Issue
Block a user