diff options
| author | xXx-caillou-xXx | 2018-07-13 10:36:50 +0200 |
|---|---|---|
| committer | jvoisin | 2018-07-13 08:36:50 +0000 |
| commit | 7963580d72a358975133f86f01de2d2eab08ba38 (patch) | |
| tree | 4bec345d70f687a2a6002b36e2f2fc79318959f6 /src/sp_config_utils.h | |
| parent | 12b740bc7bb01ffe397cecc5b6fa25b136304911 (diff) | |
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*`
Diffstat (limited to 'src/sp_config_utils.h')
| -rw-r--r-- | src/sp_config_utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
| 2 | #define SP_CONFIG_UTILS | 2 | #define SP_CONFIG_UTILS |
| 3 | 3 | ||
| 4 | int parse_keywords(sp_config_functions *, char *); | 4 | int parse_keywords(sp_config_functions *, char *); |
| 5 | char *get_param(size_t *, char *restrict, sp_type, const char *restrict); | 5 | zend_string *get_param(size_t *, char *restrict, sp_type, const char *restrict); |
| 6 | int array_to_list(char **, sp_list_node **); | 6 | int array_to_list(char **, sp_list_node **); |
| 7 | sp_list_node *parse_functions_list(char *value); | 7 | sp_list_node *parse_functions_list(char *value); |
| 8 | 8 | ||
