summaryrefslogtreecommitdiff
path: root/src/sp_config.h
diff options
context:
space:
mode:
authorjvoisin2022-05-03 21:48:35 +0200
committerjvoisin2022-05-03 21:48:35 +0200
commit7c2d1d7d2713c0fa6bda63c376baf25d9f3d712c (patch)
treec894f344fc8e7d8a0d199d96cd8d2083e66a44c7 /src/sp_config.h
parentaf93172be680bb75ebdf23ff6533c53f587da18c (diff)
More const frenzy
Diffstat (limited to 'src/sp_config.h')
-rw-r--r--src/sp_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sp_config.h b/src/sp_config.h
index 87710a0..3d92f2f 100644
--- a/src/sp_config.h
+++ b/src/sp_config.h
@@ -176,7 +176,7 @@ typedef struct {
176 HashTable *entries; // ht of sp_ini_entry 176 HashTable *entries; // ht of sp_ini_entry
177} sp_config_ini; 177} sp_config_ini;
178 178
179#define SP_PARSE_FN_(fname, kwvar) int fname(char *token, sp_parsed_keyword *kwvar, void *retval) 179#define SP_PARSE_FN_(fname, kwvar) int fname(char const *const token, sp_parsed_keyword *kwvar, void *retval)
180#define SP_PARSE_FN(fname) SP_PARSE_FN_(fname, parsed_rule) 180#define SP_PARSE_FN(fname) SP_PARSE_FN_(fname, parsed_rule)
181#define SP_PARSEKW_FN(fname) SP_PARSE_FN_(fname, kw) 181#define SP_PARSEKW_FN(fname) SP_PARSE_FN_(fname, kw)
182 182
@@ -269,9 +269,9 @@ typedef struct {
269 269
270#define SP_TOKEN_LIST "list" 270#define SP_TOKEN_LIST "list"
271 271
272zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, const sp_config_keyword *config_keywords); 272zend_result sp_process_rule(sp_parsed_keyword *parsed_rule, const sp_config_keyword *const config_keywords);
273 273
274zend_result sp_parse_config(const char *filename); 274zend_result sp_parse_config(const char *const filename);
275 275
276#define SP_PARSE_CHECK_ARG_EXISTS(value) \ 276#define SP_PARSE_CHECK_ARG_EXISTS(value) \
277if (!value) { \ 277if (!value) { \