* Better flex fixups; make sure to link with -lfl even if building
[filters.git] / jive.l
diff --git a/jive.l b/jive.l
index 750b3cdb9a5921db2c605cf0f0313a2d3383718a..1171975dae6e0b51212b0c14967318107639a102 100644 (file)
--- a/jive.l
+++ b/jive.l
 BW [ \t\(]
 EW [ \t.,;!\?$\)]
 %%
+%{
+       void plastc()
+       {
+               unput(yytext[yyleng-1]);
+       }
+%}
 @[Bb]egin(.*)          |
 ".so ".*$                      printf("%s", yytext);
 {BW}send                       printf("%ct'row",yytext[0]);
@@ -195,10 +201,6 @@ against                            printf("agin'");
 meta                           printf("meta-fuckin'");
 cally                          printf("c'l");
 %%
-plastc()
-{
-       yyunput(yytext[yyleng-1], yytext);
-}
 
 caseify(c)
 char c;
@@ -243,16 +245,6 @@ expletive()
                }
 }
 
-main()
-{
-       yylex();
-}
-
-int yywrap()
-{
-       return 1;
-}
-
 /*
  * Bugs:
  *
This page took 0.009501 seconds and 4 git commands to generate.