Skip to content

Commit 3b1cc8c

Browse files
committed
eliminate unused expscan function yywrap()
1 parent cadc776 commit 3b1cc8c

File tree

3 files changed

+2
-26
lines changed

3 files changed

+2
-26
lines changed

src/express/expscan.l

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -151,19 +151,6 @@ SCANnextchar(char* buffer)
151151
return 0;
152152
}
153153

154-
static int
155-
yywrap()
156-
{
157-
int i;
158-
159-
for (i = 0; i < nesting_level && i < MAX_NESTED_COMMENTS; i++) {
160-
ERRORreport_with_symbol(ERROR_unmatched_open_comment,
161-
&open_comment[i]);
162-
/* maybe not all, but at least some will be reported - DEL */
163-
}
164-
return 1;
165-
}
166-
167154
#define NEWLINE (yylineno++)
168155

169156
/* when lex looks ahead over a newline, error messages get thrown off */

src/express/generated/expscan.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,6 @@ return 1;
143143
} else
144144
return 0;
145145
}
146-
static int
147-
yywrap()
148-
{
149-
int i;
150-
for (i = 0; i < nesting_level && i < MAX_NESTED_COMMENTS; i++) {
151-
ERRORreport_with_symbol(ERROR_unmatched_open_comment,
152-
&open_comment[i]);
153-
/* maybe not all, but at least some will be reported - DEL */
154-
}
155-
return 1;
156-
}
157146
#define NEWLINE (yylineno++)
158147
/* when lex looks ahead over a newline, error messages get thrown off */
159148
/* Fortunately, we know when that occurs, so adjust for it by this hack */

src/express/generated/verification_info.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ set(baseline_re2c_version "001305")
44
set(baseline_perplex_version "1.0.0")
55
set(baseline_lempar_c_md5 60741b9dd886b77a5732a2e85d6d56b0)
66
set(baseline_perplex_template_c_md5 7db377251a8c99c835f06df129d95bed)
7-
set(baseline_expscan_l_md5 fc0914cda3e0f1e112a7151b78c17b3e)
7+
set(baseline_expscan_l_md5 c86358d3e57ce6916c28a63262fad6e6)
88
set(baseline_expparse_y_md5 dd9351921b364dbdd87e51ba4b51b3f0)
9-
set(baseline_expscan_c_md5 1b7e1705ad2090f1333c19d11d7e7b95)
9+
set(baseline_expscan_c_md5 98381bfb4cbce672eb6f438e71c40101)
1010
set(baseline_expscan_h_md5 3052c058a37045b43f96e4c04039bce3)
1111
set(baseline_expparse_c_md5 cad8730e0f2919d75bc964383dfbfc36)
1212
set(baseline_expparse_h_md5 e4a5599839b2a9f7a6915a0dcc7747b0)

0 commit comments

Comments
 (0)