X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=jive.l;h=f8a1386d11506e58ae030bd40ea34684754f406a;hb=fe32438d3e531bd432bf23267d0e2bd2a8725618;hp=750b3cdb9a5921db2c605cf0f0313a2d3383718a;hpb=7f4e9d5ed94ae3d89fa2548194ef0bf190368080;p=filters.git diff --git a/jive.l b/jive.l index 750b3cd..f8a1386 100644 --- a/jive.l +++ b/jive.l @@ -17,7 +17,13 @@ %o 1500 BW [ \t\(] EW [ \t.,;!\?$\)] +%option noyywrap %% + +%{ + void plastc(); +%} + @[Bb]egin(.*) | ".so ".*$ printf("%s", yytext); {BW}send printf("%ct'row",yytext[0]); @@ -195,9 +201,10 @@ against printf("agin'"); meta printf("meta-fuckin'"); cally printf("c'l"); %% -plastc() + +void plastc() { - yyunput(yytext[yyleng-1], yytext); + unput(yytext[yyleng-1]); } caseify(c) @@ -243,16 +250,6 @@ expletive() } } -main() -{ - yylex(); -} - -int yywrap() -{ - return 1; -} - /* * Bugs: *