- Add main and yywrap functions, though they were not needed before.
- Call yyunput instead of unput macro, as the macro uses yytext_ptr,
which flex undefes before the bottom set of functions are defined.
Closes: #189040
* Various other fixes to build without warnings.
if (yytext[yyleng-1] == '.')
dintI();
else
- unput(yytext[yyleng-1]);
+ yyunput(yytext[yyleng-1], yytext);
}
plastc()
{
- unput(yytext[yyleng-1]);
+ yyunput(yytext[yyleng-1], yytext);
+}
+
+main()
+{
+ yylex();
+}
+
+int yywrap()
+{
+ return 1;
}
caseify(c)
* continue to make the chef filter more similar to the old one
* write and collect more filters
* does anyone have an asci-art cow font?
+* rms filter, though vrms already does a good job..
+filters (2.32) unstable; urgency=low
+
+ * Deal with the new flex 2.5.31 as follows:
+ - Add main and yywrap functions, though they were not needed before.
+ - Call yyunput instead of unput macro, as the macro uses yytext_ptr,
+ which flex undefes before the bottom set of functions are defined.
+ Closes: #189040
+ * Various other fixes to build without warnings.
+
+ -- Joey Hess <joeyh@debian.org> Mon, 14 Apr 2003 23:39:26 -0400
+
filters (2.31) unstable; urgency=low
* censor: corrected spelling of pyvgbevf, Closes: #172976
Priority: optional
Build-Depends: debhelper (>= 4), flex, bison | byacc | btyacc, dpkg-dev (>= 1.9.0)
Maintainer: Joey Hess <joeyh@debian.org>
-Standards-Version: 3.5.8.0
+Standards-Version: 3.5.9.0
Package: filters
Architecture: any
-This is a Debian prepackaged version of the filters package.
+This is the Debian filters package.
This package was put together and debianized by Joey Hess
<joeyh@debian.org>, using sources from all over.
# just for reference, you may do whatever you like with this file.
-Everything else is copyright 1999-2002 by Joey Hess, under the terms of GPL.
+Everything else is copyright 1999-2003 by Joey Hess, under the terms of GPL.
The full text of the GNU GPL can be found in /usr/share/common-licenses/GPL
on Debian systems.
eleet | wall # b1ff works well too
- b1ff | bitchx | censor
+ b1ff | ircII | censor
.SH "DESCRIPTION"
All of these programs are filters to do all sorts of strange things to text.
-No racial or societal slurs are intended. For amusement only.
+No personal, racial, societal slurs are intended. For amusement only.
.P
All the filters read input from stdin, change it, and write the filtered
text to stdout.
cockney, jive, and nyc filters. jibberish is by Raul Miller
<rdm@test.legislate.com>, jethro is by Duane Paulson
<ci922@cleveland.freenet.edu>, rasterman is by Zachary Beane, ken is by
-Stephen K Mulrine <skm@eqsn.net>, newspeak is authored by Jamie Zawinski
+Stephen K Mulrine <skm@eqsn.net>, newspeak is by Jamie Zawinski
<jwz@jwz.org>, studly is by Nick Phillips <nwp@lemon-computing.com>, and
kraut is by John Sparks.
{SW}[Aa]t{BW}all{EW} *(yytext+1)=(char)'A'; SESUB("A tall");
{SW}[Aa]m{EW} |
-{SW}[Aa]re{EW} SESUB("Is");
{SW}[Ww]as{EW} |
{SW}[Ww]ere{EW} SESUB("Wuz");
{SW}[Ww]asn't{EW} SESUB("Wasunt");
{SW}[Tt]oo{EW} SESUB("Besides");
{SW}[Tt]o{EW} SESUB("Tuh");
{SW}[Aa][n]?{EW} SESUB("Ah");
-{SW}[Aa]re{EW} |
{SW}[Oo]ur{EW} |
{SW}[Oo]r{EW} SESUB("Ore");
{SW}[Oo]f{EW} SESUB("Uv");
yylex();
}
+int yywrap()
+{
+ return 1;
+}
*
* Reproduction permitted so long as this notice is retained.
*/
+
%}
%e 1700
%p 4000
%%
plastc()
{
- unput(yytext[yyleng-1]);
+ yyunput(yytext[yyleng-1], yytext);
}
caseify(c)
}
}
+main()
+{
+ yylex();
+}
+
+int yywrap()
+{
+ return 1;
+}
+
/*
* Bugs:
*
srand(getpid());
yylex();
}
+
+int yywrap()
+{
+ return 1;
+}
extern char mylval;
-void yyerror(char *s) {
+int yyerror(char *s) {
printf("%s\n",s);
}
chmod +x $1
echo $1 >>SAMPLES
echo "-------------" >>SAMPLES
-printf "Here's how this filter sounds, in everyday use.\nThis line is another sample of this filter's output." | ./$1 >>SAMPLES
+printf "Here's how this filter sounds, in everyday use.\nNow is the time for all good men to come to the aid of their country." | ./$1 >>SAMPLES
echo "" >>SAMPLES
echo "" >>SAMPLES
* for any purpose. It is provided "as is" without express or
* implied warranty.
*
- * Permissiom granted for noncommercial use and redistribution.
* To compile:
*
* flex newspeak.l
%%
plastc()
{
- unput(yytext[yyleng-1]);
+ yyunput(yytext[yyleng-1], yytext);
}
caseify(c)
}
}
}
+
+main()
+{
+ yylex();
+}
+
+int yywrap()
+{
+ return 1;
+}