Add code to de-register patterns.
This commit is contained in:
@@ -114,6 +114,15 @@ liblex_result eval_config_free(eval_config* config);
|
||||
* @return LIBLEX_SUCCESS if all goes well, or LIBLEX_MALLOC if there was an allocation failure.
|
||||
*/
|
||||
liblex_result eval_config_add(eval_config* config, const char* pattern, int pattern_id);
|
||||
/**
|
||||
* Removes a pattern from this configuration that has been previously
|
||||
* registered.
|
||||
* @param config the configuration to add the pattern to.
|
||||
* @param pattern the pattern to remove.
|
||||
* @param pattern_id the id associated with the pattern.
|
||||
* @return LIBLEX_SUCCESS if all goes well, or LIBLEX_MALLOC if there was an allocation failure.
|
||||
*/
|
||||
liblex_result eval_config_remove(eval_config* config, const char* pattern, int pattern_id);
|
||||
/**
|
||||
* Evaluates / finds a single word.
|
||||
* @param string the string to evaluate.
|
||||
|
||||
Reference in New Issue
Block a user