Reorganize some code to support building with clang. Closes: #758450 Thanks, Alexander.
[filters.git] / cockney.l
index f6d0ad202958460041f56bb34a2264b86406019f..4cc1555dc2ff75c9096bba477586bd997258fc23 100644 (file)
--- a/cockney.l
+++ b/cockney.l
@@ -15,19 +15,13 @@ EW [ \t.,;!\?$]
 
 %Start junk
 
+%option noyywrap
+
 %%
 
 %{
-       void eos() {
-           if (yytext[yyleng-1] == '.')
-               dintI();
-           else
-               unput(yytext[yyleng-1]);
-       }
-
-       void plastc() {
-           unput(yytext[yyleng-1]);
-       }
+void eos();
+void plastc();
 %}
 
 <junk>.                        {       srandom(time(0L)); unput(yytext[0]); BEGIN 0; }
@@ -103,6 +97,19 @@ ime{EW}                     {       printf("oime"); eos(); }
 
 %%
 
+void eos()
+{
+    if (yytext[yyleng-1] == '.')
+    dintI();
+    else
+    unput(yytext[yyleng-1]);
+}
+
+void plastc()
+{
+    unput(yytext[yyleng-1]);
+}
+
 caseify(c)
 char c;
 {
This page took 0.009549 seconds and 4 git commands to generate.