Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37892751
en ru br
ALT Linux repos
S:2.6.4.0.88.9801-alt2
5.0: 2.5.33-alt3
4.1: 2.5.33-alt3
4.0: 2.5.33-alt3
3.0: 2.5.4a-ipl16mdk

Group :: Development/Other
RPM: flex

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: flex-2.5.35-deb-6.patch
Download


filterdiff -z -x '*/debian/*' -x '*/flexint.h' '*/gen.c' -x '*/skel.c' -x '*/scan.c' flex_2.5.35-6.diff.gz
--- flex-2.5.35.orig/flex.skl
+++ flex-2.5.35/flex.skl
@@ -1074,7 +1074,7 @@
 /* This used to be an fputs(), but since the string might contain NUL's,
  * we now use fwrite().
  */
-#define ECHO fwrite( yytext, yyleng, 1, yyout )
+#define ECHO do { if (fwrite( yytext, yyleng, 1, yyout )) {} } while (0)
 %endif
 %if-c++-only C++ definition
 #define ECHO LexerOutput( yytext, yyleng )
@@ -2348,8 +2348,8 @@
 %if-c-only
 /** Setup the input buffer state to scan the given bytes. The next call to yylex() will
  * scan from a @e copy of @a bytes.
- * @param bytes the byte buffer to scan
- * @param len the number of bytes in the buffer pointed to by @a bytes.
+ * @param yybytes the byte buffer to scan
+ * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes.
  * M4_YY_DOC_PARAM
  * @return the newly allocated buffer state object.
  */
--- flex-2.5.35.orig/tests/test-bison-yylloc/Makefile.am
+++ flex-2.5.35/tests/test-bison-yylloc/Makefile.am
@@ -34,7 +34,7 @@
 
 testname = test-bison-yylloc
 
-scanner.c: $(srcdir)/scanner.l
+scanner.c scanner.h: $(srcdir)/scanner.l
 	$(FLEX) $<
 
 parser.c: $(srcdir)/parser.y
@@ -50,4 +50,5 @@
 	$(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
 
 parser.h: parser.c
-scanner.c main.o: parser.h
+scanner.o: parser.h
+main.o: parser.h scanner.h
--- flex-2.5.35.orig/tests/test-bison-yylval/Makefile.am
+++ flex-2.5.35/tests/test-bison-yylval/Makefile.am
@@ -34,7 +34,7 @@
 
 testname = test-bison-yylval
 
-scanner.c: $(srcdir)/scanner.l
+scanner.c scanner.h: $(srcdir)/scanner.l
 	$(FLEX) $<
 
 parser.c: $(srcdir)/parser.y
@@ -50,4 +50,4 @@
 	$(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
 
 parser.h: parser.c
-main.o: parser.h
+main.o: parser.h scanner.h
--- flex-2.5.35.orig/tests/test-bison-nr/Makefile.am
+++ flex-2.5.35/tests/test-bison-nr/Makefile.am
@@ -34,7 +34,7 @@
 
 testname = test-bison-nr
 
-scanner.c: $(srcdir)/scanner.l
+scanner.c scanner.h: $(srcdir)/scanner.l
 	$(FLEX) $<
 
 parser.c: $(srcdir)/parser.y
@@ -50,4 +50,5 @@
 	$(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
 
 parser.h: parser.c
-scanner.c main.o: parser.h
+scanner.o: parser.h
+main.o: parser.h scanner.h
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin