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 b00f2b078288d1acaccc727f47b9c1818a271590..509979e5298647d6f554fa4522407cf68528345d 100644 (file)
--- a/nyc.l
+++ b/nyc.l
 BW [ \t]
 SP [ \t]
 EW [ \t.,;!\?$]
+
 %%
 %{
-       void plastc() {
-               yyunput(yytext[yyleng-1], yytext);
-       }
+    void plastc();
 %}
 ".so ".*$                      printf("%s", yytext);
 [ao]ther                       printf("%cdder", yytext[0]=='a'?'a':'u');
@@ -72,6 +71,11 @@ negro                                printf("spade");
 [a-z]"."               {       printf("%s", yytext);expletive();}
 %%
 
+void plastc()
+{
+    yyunput(yytext[yyleng-1], yytext);
+}
+
 caseify(c)
 char c;
 {
@@ -97,11 +101,6 @@ expletive()
                }
 }
 
-main()
-{
-       yylex();
-}
-
 int yywrap()
 {
        return 1;
This page took 0.010597 seconds and 4 git commands to generate.