diff options
| author | jvoisin | 2017-12-21 14:03:18 +0100 |
|---|---|---|
| committer | jvoisin | 2017-12-21 14:03:18 +0100 |
| commit | 0d98f51e7dbde4a40c0039910d43ad378eaefa83 (patch) | |
| tree | 78749747bc46c80f85bc2c3cdfb629b331d200f1 /src/sp_config.h | |
| parent | f91cf7390c060986e51b77990f4e472165b97dad (diff) | |
Rename sp_node_t to sp_list_node
Since we now have sp_list and sp_tree, it makes sense to specify that
nodes are only for lists.
Diffstat (limited to 'src/sp_config.h')
| -rw-r--r-- | src/sp_config.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/sp_config.h b/src/sp_config.h index 127c557..86513f9 100644 --- a/src/sp_config.h +++ b/src/sp_config.h | |||
| @@ -73,7 +73,7 @@ typedef struct { | |||
| 73 | 73 | ||
| 74 | char *function; | 74 | char *function; |
| 75 | pcre *r_function; | 75 | pcre *r_function; |
| 76 | sp_node_t *functions_list; | 76 | sp_list_node *functions_list; |
| 77 | 77 | ||
| 78 | char *hash; | 78 | char *hash; |
| 79 | int simulation; | 79 | int simulation; |
| @@ -98,8 +98,8 @@ typedef struct { | |||
| 98 | char *alias; | 98 | char *alias; |
| 99 | bool param_is_array; | 99 | bool param_is_array; |
| 100 | bool var_is_array; | 100 | bool var_is_array; |
| 101 | sp_node_t *param_array_keys; | 101 | sp_list_node *param_array_keys; |
| 102 | sp_node_t *var_array_keys; | 102 | sp_list_node *var_array_keys; |
| 103 | 103 | ||
| 104 | bool allow; | 104 | bool allow; |
| 105 | 105 | ||
| @@ -109,7 +109,7 @@ typedef struct { | |||
| 109 | } sp_disabled_function; | 109 | } sp_disabled_function; |
| 110 | 110 | ||
| 111 | typedef struct { | 111 | typedef struct { |
| 112 | sp_node_t *disabled_functions; // list of sp_disabled_function | 112 | sp_list_node *disabled_functions; // list of sp_disabled_function |
| 113 | } sp_config_disabled_functions; | 113 | } sp_config_disabled_functions; |
| 114 | 114 | ||
| 115 | typedef struct { | 115 | typedef struct { |
| @@ -117,9 +117,9 @@ typedef struct { | |||
| 117 | } sp_config_cookie; | 117 | } sp_config_cookie; |
| 118 | 118 | ||
| 119 | typedef struct { | 119 | typedef struct { |
| 120 | sp_node_t *construct_include; // list of rules for `(include|require)_(once)?` | 120 | sp_list_node *construct_include; // list of rules for `(include|require)_(once)?` |
| 121 | sp_node_t *construct_eval; | 121 | sp_list_node *construct_eval; |
| 122 | sp_node_t *construct_echo; | 122 | sp_list_node *construct_echo; |
| 123 | } sp_config_disabled_constructs; | 123 | } sp_config_disabled_constructs; |
| 124 | 124 | ||
| 125 | typedef struct { | 125 | typedef struct { |
| @@ -227,6 +227,6 @@ int parse_cidr(char *restrict, char *restrict, void *); | |||
| 227 | int parse_php_type(char *restrict, char *restrict, void *); | 227 | int parse_php_type(char *restrict, char *restrict, void *); |
| 228 | 228 | ||
| 229 | // cleanup | 229 | // cleanup |
| 230 | void sp_disabled_function_list_free(sp_node_t*); | 230 | void sp_disabled_function_list_free(sp_list_node*); |
| 231 | 231 | ||
| 232 | #endif /* SP_CONFIG_H */ | 232 | #endif /* SP_CONFIG_H */ |
