* Patch from Seneca <seneca-cunningham@rogers.com> to correct newspeak's
authorjoey <joey@a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Sun, 19 May 2002 23:55:14 +0000 (23:55 +0000)
committerjoey <joey@a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Sun, 19 May 2002 23:55:14 +0000 (23:55 +0000)
     handling of double quotes preeceeded by punctuation and followed by a
     blank line. Closes: #146769

debian/changelog
debian/control
kraut.dir/lex.yy.c
newspeak.l

index 25b8a7f7917c0d2d1e97a36e7d8e11812a658b68..ffa5d4e33c2dfe02f5491514f7047e03d4b701b3 100644 (file)
@@ -1,3 +1,11 @@
+filters (2.23) unstable; urgency=low
+
+  * Patch from Seneca <seneca-cunningham@rogers.com> to correct newspeak's
+    handling of double quotes preeceeded by punctuation and followed by a
+    blank line. Closes: #146769
+
+ -- Joey Hess <joeyh@debian.org>  Sun, 19 May 2002 19:52:06 -0400
+
 filters (2.22) unstable; urgency=low
 
   * Something I already fixed in CVS, Closes: #124617
index 131f0afffc99c20fbe3fa067669d7b4b15a221e3..859e90acc77d9818f456b18eff69c444294fb50a 100644 (file)
@@ -3,7 +3,7 @@ Section: games
 Priority: optional
 Build-Depends: debhelper (>= 3), flex, bison | byacc | btyacc
 Maintainer: Joey Hess <joeyh@debian.org>
-Standards-Version: 3.5.6.0
+Standards-Version: 3.5.6.1
 
 Package: filters
 Architecture: any
index 038b6bbf0d7071500b57b6ef9440d0b5d7e9377b..38190b2fd8747972de1e9652c4d37e96090e8f0e 100644 (file)
@@ -9,7 +9,7 @@
 #define YY_FLEX_MINOR_VERSION 5
 
 #include <stdio.h>
-
+#include <errno.h>
 
 /* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
 #ifdef c_plusplus
@@ -22,7 +22,9 @@
 #ifdef __cplusplus
 
 #include <stdlib.h>
+#ifndef _WIN32
 #include <unistd.h>
+#endif
 
 /* Use prototypes in function declarations. */
 #define YY_USE_PROTOS
@@ -450,7 +452,7 @@ char *yytext;
 #line 11 "kraut.l"
      char buf[128];
 
-#line 454 "lex.yy.c"
+#line 456 "lex.yy.c"
 
 /* Macros after this point can all be overridden by user definitions in
  * section 1.
@@ -550,9 +552,20 @@ YY_MALLOC_DECL
                        YY_FATAL_ERROR( "input in flex scanner failed" ); \
                result = n; \
                } \
-       else if ( ((result = fread( buf, 1, max_size, yyin )) == 0) \
-                 && ferror( yyin ) ) \
-               YY_FATAL_ERROR( "input in flex scanner failed" );
+       else \
+               { \
+               errno=0; \
+               while ( (result = fread(buf, 1, max_size, yyin))==0 && ferror(yyin)) \
+                       { \
+                       if( errno != EINTR) \
+                               { \
+                               YY_FATAL_ERROR( "input in flex scanner failed" ); \
+                               break; \
+                               } \
+                       errno=0; \
+                       clearerr(yyin); \
+                       } \
+               }
 #endif
 
 /* No semi-colon after return; correct usage is to write "yyterminate();" -
@@ -603,7 +616,7 @@ YY_DECL
 
 #line 15 "kraut.l"
 
-#line 607 "lex.yy.c"
+#line 620 "lex.yy.c"
 
        if ( yy_init )
                {
@@ -986,7 +999,7 @@ YY_RULE_SETUP
 #line 78 "kraut.l"
 ECHO;
        YY_BREAK
-#line 990 "lex.yy.c"
+#line 1003 "lex.yy.c"
 case YY_STATE_EOF(INITIAL):
        yyterminate();
 
@@ -1550,11 +1563,15 @@ YY_BUFFER_STATE b;
        }
 
 
+#ifndef _WIN32
+#include <unistd.h>
+#else
 #ifndef YY_ALWAYS_INTERACTIVE
 #ifndef YY_NEVER_INTERACTIVE
 extern int isatty YY_PROTO(( int ));
 #endif
 #endif
+#endif
 
 #ifdef YY_USE_PROTOS
 void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )
index 67b2c5e2b074f964c60f2b4370b1def93e0d09ad..51333abd1034927d31f785ae344897f0ba6cfa9f 100644 (file)
@@ -584,7 +584,7 @@ robably|ventually|[Oo]bvious|[Bb]asic|{W}[Oo]nly|otally     |
                        if (14 == fcounter++) printf("(fnord)  ");
                }
 
-[.,!?]\"([^\n\".!]+[.!])?\n/[\n\t ]    printf("%c  Hail Big Brother!\"%s",Y0,yytext+1);
+[.,!?]\"([^\n\".!]+[.!])?\n/[\n\t ]    printf("%c  Hail Big Brother!\"%s",Y0,yytext+2);
 \"([.,!?][^\n\".!]+[.!])?\n/[\n\t ]    printf("%c  Hail Big Brother!\"%s",Y1,yytext+2);
 
 .                      printf(yytext);
This page took 0.015378 seconds and 4 git commands to generate.