summaryrefslogtreecommitdiff
path: root/src/sp_config_keywords.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/sp_config_keywords.c')
-rw-r--r--src/sp_config_keywords.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/sp_config_keywords.c b/src/sp_config_keywords.c
index f7be731..e0e5166 100644
--- a/src/sp_config_keywords.c
+++ b/src/sp_config_keywords.c
@@ -96,7 +96,7 @@ SP_PARSE_FN(parse_unserialize) {
96} 96}
97 97
98SP_PARSE_FN(parse_readonly_exec) { 98SP_PARSE_FN(parse_readonly_exec) {
99 bool enable = false, disable = false; 99 bool enable = false, disable = false, xchecks = false, no_xchecks = false;
100 sp_config_readonly_exec *cfg = (sp_config_readonly_exec*)retval; 100 sp_config_readonly_exec *cfg = (sp_config_readonly_exec*)retval;
101 101
102 sp_config_keyword config_keywords[] = { 102 sp_config_keyword config_keywords[] = {
@@ -105,6 +105,10 @@ SP_PARSE_FN(parse_readonly_exec) {
105 {parse_empty, SP_TOKEN_SIMULATION, &(cfg->simulation)}, 105 {parse_empty, SP_TOKEN_SIMULATION, &(cfg->simulation)},
106 {parse_empty, SP_TOKEN_SIM, &(cfg->simulation)}, 106 {parse_empty, SP_TOKEN_SIM, &(cfg->simulation)},
107 {parse_str, SP_TOKEN_DUMP, &(cfg->dump)}, 107 {parse_str, SP_TOKEN_DUMP, &(cfg->dump)},
108 {parse_empty, "extended_checks", &(xchecks)},
109 {parse_empty, "xchecks", &(xchecks)},
110 {parse_empty, "no_extended_checks", &(no_xchecks)},
111 {parse_empty, "noxchecks", &(no_xchecks)},
108 {0, 0, 0}}; 112 {0, 0, 0}};
109 113
110 SP_PROCESS_CONFIG_KEYWORDS_ERR(); 114 SP_PROCESS_CONFIG_KEYWORDS_ERR();
@@ -112,6 +116,7 @@ SP_PARSE_FN(parse_readonly_exec) {
112 cfg->textual_representation = sp_get_textual_representation(parsed_rule); 116 cfg->textual_representation = sp_get_textual_representation(parsed_rule);
113 117
114 SP_SET_ENABLE_DISABLE(enable, disable, cfg->enable); 118 SP_SET_ENABLE_DISABLE(enable, disable, cfg->enable);
119 if (xchecks) { cfg->extended_checks = true; } else if (no_xchecks) { cfg->extended_checks = false; }
115 120
116 return SP_PARSER_STOP; 121 return SP_PARSER_STOP;
117} 122}