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 4b2928e658386d57833935fe0b37b04a9f0478dc..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.
*
@@
-51,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
@@
-344,7
+350,7
@@
China|[Jj]apan|[Tt]aiwan|{THE}?[Pp]hillipines|[Ii]ndia |
%{
/******************************
%{
/******************************
- * Miscel
aneous Translations
*
+ * Miscel
laneous Translations
*
******************************/
%}
******************************/
%}
@@
-643,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;
{
@@
-659,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;
{
@@
-667,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;
{
@@
-675,7
+681,7
@@
_caseify(c,i)
else return (c);
}
else return (c);
}
-caseify(c)
+c
har c
aseify(c)
char c;
{
return _caseify(c,0);
char c;
{
return _caseify(c,0);
This page took
0.01117 seconds
and
4
git commands to generate.