Switch pattern compilation code to const char*

This commit is contained in:
2017-07-20 22:01:24 -07:00
parent 8d1178788a
commit 6d520028b4
2 changed files with 6 additions and 6 deletions

View File

@@ -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.