diff options
author | John Millaway <john43@users.sourceforge.net> | 2002-09-20 00:06:37 +0000 |
---|---|---|
committer | John Millaway <john43@users.sourceforge.net> | 2002-09-20 00:06:37 +0000 |
commit | 415cd67dd7d59b13a7274e3df9170ff27de8906d (patch) | |
tree | abdf040a55b4dd62bd83b710263f004ba2913b92 /misc.c | |
parent | d6336be8662efbfd1a8ee7c66ad0f5d2ebb5de0e (diff) |
bison-bridge skel handled via %if/%endif pairs.
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); } |