projects
/
filters.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Also close bug
[filters.git]
/
newspeak.l
diff --git
a/newspeak.l
b/newspeak.l
index ce0f57314030ddf22c9e08c34071ff1b2d2f48d5..4883d40cc62bdb933960f86076f67bf342b8614e 100644
(file)
--- a/
newspeak.l
+++ b/
newspeak.l
@@
-20,7
+20,7
@@
* rm lex.yy.c
*
* This must be compiled with "flex", not normal "lex". Lex has
* rm lex.yy.c
*
* This must be compiled with "flex", not normal "lex". Lex has
- * some builtin, unchangable limits which this program exceeds.
+ * some builtin, unchang
e
able limits which this program exceeds.
* This has been verified to work with flex version 2.3.7, and
* may not work with flex version 2.3.6.
*
* This has been verified to work with flex version 2.3.7, and
* may not work with flex version 2.3.6.
*
@@
-43,7
+43,6
@@
unsigned int fcounter = 0;
#define Y2 yytext[2]
#define Y3 yytext[3]
#define C caseify
#define Y2 yytext[2]
#define Y3 yytext[3]
#define C caseify
-#define C1 caseify1
#define CAP(string) capstring(0, (string),0)
#define WCAP(string) capstring(Y0,(string),1)
#define CAP(string) capstring(0, (string),0)
#define WCAP(string) capstring(Y0,(string),1)
@@
-52,6
+51,12
@@
unsigned int fcounter = 0;
#define WCOMP(string1,string2) compstring(Y0,(string1),(string2),1)
#define DUMP() printf("%s",yytext)
#define WCOMP(string1,string2) compstring(Y0,(string1),(string2),1)
#define DUMP() printf("%s",yytext)
+
+void capstring(char, char*, int);
+void compstring(char, char*, char*, int);
+char _caseify(char, int);
+char caseify(char);
+
%}
%e 8000
%}
%e 8000
@@
-345,7
+350,7
@@
China|[Jj]apan|[Tt]aiwan|{THE}?[Pp]hillipines|[Ii]ndia |
%{
/******************************
%{
/******************************
- * Miscel
aneous Translations
*
+ * Miscel
laneous Translations
*
******************************/
%}
******************************/
%}
@@
-644,14
+649,14
@@
robably|ventually|[Oo]bvious|[Bb]asic|{W}[Oo]nly|otally |
%}
%%
%}
%%
-main()
+
int
main()
{
yylex();
printf("\nHail Big Brother!\n");
}
{
yylex();
printf("\nHail Big Brother!\n");
}
-capstring(firstchar,string,i)
+
void
capstring(firstchar,string,i)
char firstchar, *string;
int i;
{
char firstchar, *string;
int i;
{
@@
-660,7
+665,7
@@
capstring(firstchar,string,i)
printf("%s",string+1);
}
printf("%s",string+1);
}
-compstring(firstchar,string1,string2,i)
+
void
compstring(firstchar,string1,string2,i)
char firstchar, *string1, *string2;
int i;
{
char firstchar, *string1, *string2;
int i;
{
@@
-668,7
+673,7
@@
compstring(firstchar,string1,string2,i)
capstring(0,string2,i);
}
capstring(0,string2,i);
}
-_caseify(c,i)
+
char
_caseify(c,i)
char c;
int i;
{
char c;
int i;
{
@@
-676,10
+681,8
@@
_caseify(c,i)
else return (c);
}
else return (c);
}
-caseify(c)
- char c;
-{ _caseify(c,0); }
-
-caseify1(c)
+char caseify(c)
char c;
char c;
-{ _caseify(c,1); }
+{
+ return _caseify(c,0);
+}
This page took
0.011046 seconds
and
4
git commands to generate.