X-Git-Url: http://git.ieval.ro/?p=filters.git;a=blobdiff_plain;f=jive.l;h=ff6d21f10e698cb32899fd7d19b681e69de4eedf;hp=f8a1386d11506e58ae030bd40ea34684754f406a;hb=HEAD;hpb=ff7b46743fdcbc5ce956e98f68bbd16dc5ed6e3b diff --git a/jive.l b/jive.l index f8a1386..ff6d21f 100644 --- a/jive.l +++ b/jive.l @@ -18,12 +18,16 @@ BW [ \t\(] EW [ \t.,;!\?$\)] %option noyywrap -%% %{ - void plastc(); + 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]); @@ -207,7 +211,7 @@ void plastc() unput(yytext[yyleng-1]); } -caseify(c) +char caseify(c) char c; { if (yytext[0] <= 'Z') @@ -216,7 +220,7 @@ char c; return (c); } -thing(c) +void thing(c) char c; { static short count = 0; @@ -234,7 +238,8 @@ char c; break; } } -expletive() + +void expletive() { static short count = 0; static short which = 0;