summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorJohn Millaway <john43@users.sourceforge.net>2002-09-20 00:06:37 +0000
committerJohn Millaway <john43@users.sourceforge.net>2002-09-20 00:06:37 +0000
commit415cd67dd7d59b13a7274e3df9170ff27de8906d (patch)
treeabdf040a55b4dd62bd83b710263f004ba2913b92 /misc.c
parentd6336be8662efbfd1a8ee7c66ad0f5d2ebb5de0e (diff)
bison-bridge skel handled via %if/%endif pairs.
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index bab3df6..c663e4c 100644
--- a/misc.c
+++ b/misc.c
@@ -46,6 +46,8 @@
#define CMD_POP "%pop"
#define CMD_IF_REENTRANT "%if-reentrant"
#define CMD_IF_NOT_REENTRANT "%if-not-reentrant"
+#define CMD_IF_BISON_BRIDGE "%if-bison-bridge"
+#define CMD_IF_NOT_BISON_BRIDGE "%if-not-bison-bridge"
#define CMD_ENDIF "%endif"
/* we allow the skeleton to push and pop. */
@@ -915,6 +917,14 @@ void skelout ()
sko_push(do_copy);
do_copy = !reentrant && do_copy;
}
+ else if (cmd_match(CMD_IF_BISON_BRIDGE)){
+ sko_push(do_copy);
+ do_copy = bison_bridge && do_copy;
+ }
+ else if (cmd_match(CMD_IF_NOT_BISON_BRIDGE)){
+ sko_push(do_copy);
+ do_copy = !bison_bridge && do_copy;
+ }
else if (cmd_match (CMD_ENDIF)){
sko_pop(&do_copy);
}