]> iEval git - filters.git/blobdiff - newspeak.l
newspeak: Fix caseify() and remove unused caseify1()
[filters.git] / newspeak.l
index 67b2c5e2b074f964c60f2b4370b1def93e0d09ad..4b2928e658386d57833935fe0b37b04a9f0478dc 100644 (file)
@@ -13,7 +13,6 @@
  *      for any purpose.  It is provided "as is" without express or
  *      implied warranty.
  *
- *     Permissiom granted for noncommercial use and redistribution.
  *     To compile:
  *
  *     flex newspeak.l
@@ -44,7 +43,6 @@ unsigned int fcounter = 0;
 #define Y2     yytext[2]
 #define Y3     yytext[3]
 #define C      caseify
-#define C1     caseify1
 
 #define CAP(string)    capstring(0, (string),0)
 #define WCAP(string)   capstring(Y0,(string),1)
@@ -584,10 +582,10 @@ 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);
+.                      printf("%s", yytext);
 \n                     printf("\n");
 
 %{
@@ -679,8 +677,6 @@ _caseify(c,i)
 
 caseify(c)
     char c;
-{      _caseify(c,0);  }
-
-caseify1(c)
-    char c;
-{      _caseify(c,1);  }
+{
+       return _caseify(c,0);
+}
This page took 0.090035 seconds and 4 git commands to generate.