X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=newspeak.l;h=4b2928e658386d57833935fe0b37b04a9f0478dc;hb=391d581f1d17cf7887cc5747fa2750e94615fc57;hp=51333abd1034927d31f785ae344897f0ba6cfa9f;hpb=3872d98cd3176214e90886a2b7805f806854529b;p=filters.git diff --git a/newspeak.l b/newspeak.l index 51333ab..4b2928e 100644 --- a/newspeak.l +++ b/newspeak.l @@ -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) @@ -587,7 +585,7 @@ robably|ventually|[Oo]bvious|[Bb]asic|{W}[Oo]nly|otally | [.,!?]\"([^\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); +}