summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/lib/resetlexer.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/ipfilter/lib/resetlexer.c')
-rw-r--r--contrib/ipfilter/lib/resetlexer.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/contrib/ipfilter/lib/resetlexer.c b/contrib/ipfilter/lib/resetlexer.c
new file mode 100644
index 0000000..558db98
--- /dev/null
+++ b/contrib/ipfilter/lib/resetlexer.c
@@ -0,0 +1,25 @@
+/* $FreeBSD$ */
+
+/*
+ * 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()
+{
+ string_start = -1;
+ string_end = -1;
+ string_val = NULL;
+ pos = 0;
+}
OpenPOWER on IntegriCloud