mirror of
https://github.com/westes/flex.git
synced 2026-01-26 15:39:06 +00:00
Remove unused code.
Indepemdent of the retargeting changes.
This commit is contained in:
parent
700f9d3b6a
commit
723fd2c3b4
@ -296,11 +296,6 @@
|
||||
*/
|
||||
#define BAD_SUBSCRIPT -32767
|
||||
|
||||
/* Absolute value of largest number that can be stored in a short, with a
|
||||
* bit of slop thrown in for general paranoia.
|
||||
*/
|
||||
#define MAX_SHORT 32700
|
||||
|
||||
/* Method table describing a language-specific back end */
|
||||
|
||||
struct flex_backend_t {
|
||||
|
||||
20
src/misc.c
20
src/misc.c
@ -39,8 +39,6 @@
|
||||
#define CMD_IF_C_OR_CPP "%if-c-or-c++"
|
||||
#define CMD_NOT_FOR_HEADER "%not-for-header"
|
||||
#define CMD_OK_FOR_HEADER "%ok-for-header"
|
||||
#define CMD_PUSH "%push"
|
||||
#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"
|
||||
@ -722,24 +720,6 @@ void skelout (bool announce)
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (cmd_match (CMD_PUSH)){
|
||||
sko_push(do_copy);
|
||||
if(ctrl.ddebug){
|
||||
char buf2[MAXLINE];
|
||||
snprintf(buf2, sizeof(buf2), "(state = (%s)\n",do_copy?"true":"false");
|
||||
comment(buf2);
|
||||
}
|
||||
out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
|
||||
}
|
||||
else if (cmd_match (CMD_POP)){
|
||||
sko_pop(&do_copy);
|
||||
if(ctrl.ddebug){
|
||||
char buf2[MAXLINE];
|
||||
snprintf(buf2, sizeof(buf2), "(state = (%s)\n",do_copy?"true":"false");
|
||||
comment(buf2);
|
||||
}
|
||||
out_str("%s\n", buf[strlen (buf) - 1] =='\\' ? "\\" : "");
|
||||
}
|
||||
else if (cmd_match (CMD_IF_REENTRANT)){
|
||||
sko_push(do_copy);
|
||||
do_copy = ctrl.reentrant && do_copy;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user