summaryrefslogtreecommitdiffstats
path: root/generic/regguts.h
diff options
context:
space:
mode:
Diffstat (limited to 'generic/regguts.h')
-rw-r--r--generic/regguts.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/generic/regguts.h b/generic/regguts.h
index 190d40b..991979e 100644
--- a/generic/regguts.h
+++ b/generic/regguts.h
@@ -399,6 +399,19 @@ struct guts {
struct subre *lacons; /* lookahead-constraint vector */
int nlacons; /* size of lacons */
};
+
+/*
+ * Magic for allocating a variable workspace.
+ */
+
+#ifndef AllocVars
+#define AllocVars(vPtr) \
+ struct vars var; \
+ register struct vars *vPtr = &var
+#endif
+#ifndef FreeVars
+#define FreeVars(vPtr) ((void) 0)
+#endif
/*
* Local Variables: