From 7963580d72a358975133f86f01de2d2eab08ba38 Mon Sep 17 00:00:00 2001 From: xXx-caillou-xXx Date: Fri, 13 Jul 2018 10:36:50 +0200 Subject: Massively optimize how rules are handled This commit does a lot of things: - Use hashtables instead of lists to store the rules - Rules that can be applied at launch time won't be tried at runtime - Improve feedback when writing nonsensical rules - Make intensive use of `zend_string` instead of `char*`--- src/sp_config_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sp_config_utils.h') diff --git a/src/sp_config_utils.h b/src/sp_config_utils.h index 9fef996..a63cadc 100644 --- a/src/sp_config_utils.h +++ b/src/sp_config_utils.h @@ -2,7 +2,7 @@ #define SP_CONFIG_UTILS int parse_keywords(sp_config_functions *, char *); -char *get_param(size_t *, char *restrict, sp_type, const char *restrict); +zend_string *get_param(size_t *, char *restrict, sp_type, const char *restrict); int array_to_list(char **, sp_list_node **); sp_list_node *parse_functions_list(char *value); -- cgit v1.3