blob: 1170859661703b5800e859d9b935b0114ead8850 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
Index: onbld/illumos-gate/usr/src/tools/cscope-fast/scanner.l
===================================================================
--- onbld.orig/illumos-gate/usr/src/tools/cscope-fast/scanner.l 2012-06-26 00:14:27.000000000 +0000
+++ onbld/illumos-gate/usr/src/tools/cscope-fast/scanner.l 2012-07-03 20:55:40.751010087 +0000
@@ -40,6 +40,16 @@
/* the line counting has been moved from character reading for speed */
/* comments are discarded */
+
+#define YY_NO_INPUT 1
+int yytchar;
+#ifndef YYLMAX
+#define YYLMAX BUFSIZ
+#endif
+char yysbuf[YYLMAX];
+char *yysptr = yysbuf;
+int yylineno;
+
#undef input
#define input() \
((yytchar = (yytchar = yysptr > yysbuf ? \
@@ -633,7 +643,7 @@
\n { /* end of the line */
if (ppdefine == YES) { /* end of a #define */
ppdefine = NO;
- (void) yyless(yyleng - 1); /* rescan \n */
+ yyless(yyleng - 1); /* rescan \n */
last = first;
yymore();
return (DEFINEEND);
|