X-Git-Url: http://git.ieval.ro/?p=filters.git;a=blobdiff_plain;f=jive.l;h=ff6d21f10e698cb32899fd7d19b681e69de4eedf;hp=1171975dae6e0b51212b0c14967318107639a102;hb=HEAD;hpb=fb5da53f9aebccc37fa1aea6b6939fbbcb9ad659 diff --git a/jive.l b/jive.l index 1171975..ff6d21f 100644 --- a/jive.l +++ b/jive.l @@ -17,13 +17,17 @@ %o 1500 BW [ \t\(] EW [ \t.,;!\?$\)] -%% +%option noyywrap + %{ - void plastc() - { - unput(yytext[yyleng-1]); - } + void plastc(void); + char caseify(char); + void expletive(void); + void thing(char); %} + +%% + @[Bb]egin(.*) | ".so ".*$ printf("%s", yytext); {BW}send printf("%ct'row",yytext[0]); @@ -202,7 +206,12 @@ meta printf("meta-fuckin'"); cally printf("c'l"); %% -caseify(c) +void plastc() +{ + unput(yytext[yyleng-1]); +} + +char caseify(c) char c; { if (yytext[0] <= 'Z') @@ -211,7 +220,7 @@ char c; return (c); } -thing(c) +void thing(c) char c; { static short count = 0; @@ -229,7 +238,8 @@ char c; break; } } -expletive() + +void expletive() { static short count = 0; static short which = 0;