]> iEval git - filters.git/blobdiff - nyc.l
Reorganize some code to support building with clang. Closes: #758450 Thanks, Alexander.
[filters.git] / nyc.l
diff --git a/nyc.l b/nyc.l
index e6546b276951410176b34cfa999e708a396af680..509979e5298647d6f554fa4522407cf68528345d 100644 (file)
--- a/nyc.l
+++ b/nyc.l
 BW [ \t]
 SP [ \t]
 EW [ \t.,;!\?$]
+
 %%
+%{
+    void plastc();
+%}
 ".so ".*$                      printf("%s", yytext);
 [ao]ther                       printf("%cdder", yytext[0]=='a'?'a':'u');
 [Nn]othing                     printf("%cuttin'", yytext[0]);
@@ -66,9 +70,10 @@ negro                                printf("spade");
 !                              printf("!  Okay?");
 [a-z]"."               {       printf("%s", yytext);expletive();}
 %%
-plastc()
+
+void plastc()
 {
-       yyunput(yytext[yyleng-1], yytext);
+    yyunput(yytext[yyleng-1], yytext);
 }
 
 caseify(c)
@@ -96,11 +101,6 @@ expletive()
                }
 }
 
-main()
-{
-       yylex();
-}
-
 int yywrap()
 {
        return 1;
This page took 0.020835 seconds and 4 git commands to generate.