aboutsummaryrefslogtreecommitdiff
path: root/sbin/ipf/libipf/resetlexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ipf/libipf/resetlexer.c')
-rw-r--r--sbin/ipf/libipf/resetlexer.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sbin/ipf/libipf/resetlexer.c b/sbin/ipf/libipf/resetlexer.c
new file mode 100644
index 000000000000..307ed657a46a
--- /dev/null
+++ b/sbin/ipf/libipf/resetlexer.c
@@ -0,0 +1,24 @@
+
+/*
+ * Copyright (C) 2012 by Darren Reed.
+ *
+ * See the IPFILTER.LICENCE file for details on licencing.
+ *
+ * $Id$
+ */
+
+#include "ipf.h"
+
+long string_start = -1;
+long string_end = -1;
+char *string_val = NULL;
+long pos = 0;
+
+
+void resetlexer(void)
+{
+ string_start = -1;
+ string_end = -1;
+ string_val = NULL;
+ pos = 0;
+}