From: joey Date: Thu, 21 Nov 2002 05:17:28 +0000 (+0000) Subject: * Falk Hueffner provided a patch to make kraut work on alpha. X-Git-Tag: 2.39~16 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=e5dd5430485d0511d9dc55daf39f941ef623bf9a;p=filters.git * Falk Hueffner provided a patch to make kraut work on alpha. Closes: #169256 --- diff --git a/debian/changelog b/debian/changelog index 1862e28..f6dab5a 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +filters (2.30) unstable; urgency=low + + * Falk Hueffner provided a patch to make kraut work on alpha. + Closes: #169256 + + -- Joey Hess Thu, 21 Nov 2002 00:16:40 -0500 + filters (2.29) unstable; urgency=low * Added certain German phrase to the censor filter. If Germans want to send diff --git a/kraut.dir/kraut.c b/kraut.dir/kraut.c index 2880331..e09ba5f 100644 --- a/kraut.dir/kraut.c +++ b/kraut.dir/kraut.c @@ -6,16 +6,20 @@ /* This is in the public domain. Do with it as you will. */ -main() +const char *yylex(void); + +int main() { -char *line; + char *line; - while(line = (char *) yylex()){ + while((line = (char *) yylex())) { printf("%s", line); } + + return 0; } -yywrap () +int yywrap () { return (1); } diff --git a/kraut.dir/kraut.l b/kraut.dir/kraut.l index 41a021d..e46acde 100644 --- a/kraut.dir/kraut.l +++ b/kraut.dir/kraut.l @@ -8,6 +8,7 @@ BW [ ] EW [ .,;!?] %{ +#define YY_DECL const char *yylex(void) char buf[128]; %}