summaryrefslogtreecommitdiffstats
path: root/runtime/rsconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/rsconf.c')
-rw-r--r--runtime/rsconf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/runtime/rsconf.c b/runtime/rsconf.c
index 5d2407ec..0f31e515 100644
--- a/runtime/rsconf.c
+++ b/runtime/rsconf.c
@@ -466,6 +466,14 @@ finalize_it:
cnfruleDestruct(cnfrule);
}
+void cnfDoScript(struct cnfstmt *script)
+{
+ // TODO: streamline this, call directly into ruleset from grammar.y
+ // TODO: BSD-Style blocks?
+ dbgprintf("cnf:global:script\n");
+ ruleset.AddScript(ruleset.GetCurrent(loadConf), script);
+}
+
void cnfDoCfsysline(char *ln)
{
DBGPRINTF("cnf:global:cfsysline: %s\n", ln);