a few compile fixes

This commit is contained in:
fishwaldo 2003-02-18 23:39:21 +00:00
parent c5e9e6af2e
commit 1b42e14223
23 changed files with 49 additions and 97 deletions

30
.gitattributes vendored
View file

@ -7,44 +7,44 @@
/NEWS -text
/README.StupidServ -text
/b1ff.c -text
/b1ff.l -text
/brooklyn.c -text
/brooklyn.l -text
/chef.c -text
/chef.l -text
/cockney.c -text
/cockney.l -text
/common.c -text
/common.h -text
/config.status -text
/configure -text
/configure.in -text
/drawl.c -text
/drawl.l -text
flex/b1ff.l -text
flex/brooklyn.l -text
flex/chef.l -text
flex/cockney.l -text
flex/drawl.l -text
flex/fudd.l -text
flex/funetak.l -text
flex/jethro.l -text
flex/jive.l -text
flex/kraut.l -text
flex/pansy.l -text
flex/postmodern.l -text
flex/redneck.l -text
flex/valspeak.l -text
flex/warez.l -text
/fudd.c -text
/fudd.l -text
/funetak.c -text
/funetak.l -text
/install-sh -text
/jethro.c -text
/jethro.l -text
/jive.c -text
/jive.l -text
/kraut.c -text
/kraut.l -text
/modconfig.h.in -text
/pansy.c -text
/pansy.l -text
/postmodern.c -text
/postmodern.l -text
/redneck.c -text
/redneck.l -text
/s_help.c -text
/ss.c -text
/stamp-h1 -text
/talkfilters.c -text
/talkfilters.h -text
/valspeak.c -text
/valspeak.l -text
/warez.c -text
/warez.l -text

View file

@ -1,4 +1,8 @@
StupidServ Module for NeoStats Changelog.
==============================================================================
1.1 - Fish
- Fix a compile problem with getopts
- Fix a problem with make re-doing flex files
1.0 - Fish
- Initial Release

View file

@ -15,11 +15,11 @@
#define yyrestart brooklyn_yyrestart
#define yytext brooklyn_yytext
#line 19 "brooklyn.c"
#line 19 "lex.yy.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/svn/neostats/StupidServ/brooklyn.c,v 1.1 2003/02/18 13:52:15 fishwaldo Exp $
* $Header: /home/svn/neostats/StupidServ/brooklyn.c,v 1.2 2003/02/18 23:39:11 fishwaldo Exp $
*/
#define FLEX_SCANNER
@ -27,6 +27,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@ -40,7 +41,6 @@
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@ -598,7 +598,7 @@ static const char *expletives[] = { "Okay?", "Right?", "Yuh got me so fahr?",
"Ya' dig?", "Yuh with me?" };
#define EXPLETIVES_LEN (sizeof(expletives) / sizeof(expletives[0]))
#line 602 "brooklyn.c"
#line 602 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@ -746,13 +746,13 @@ YY_MALLOC_DECL
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
#line 53 "brooklyn.l"
#line 756 "brooklyn.c"
#line 756 "lex.yy.c"
if ( yy_init )
{
@ -1168,7 +1168,7 @@ YY_RULE_SETUP
#line 127 "brooklyn.l"
ECHO;
YY_BREAK
#line 1172 "brooklyn.c"
#line 1172 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(NIW):
case YY_STATE_EOF(INW):
@ -1734,11 +1734,6 @@ YY_BUFFER_STATE b;
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

View file

@ -24,47 +24,15 @@
#include <unistd.h>
#include <stdio.h>
#include "getopt.h"
#include "common.h"
/*
*/
static const struct option __gtf_options[] = { { "help", 0, NULL, 0 },
{ "version", 0, NULL, 0 },
{ NULL, 0, NULL, 0 } };
/*
*/
void gtf_parse_args_basic(int argc, char **argv, const char *help,
const char *version)
{
int c, option_index;
while((c = getopt_long(argc, argv, "", __gtf_options, &option_index)) != EOF)
{
switch(c)
{
case 0:
if(option_index == HELP_OPTION)
fprintf(stderr, help, *argv);
else if(option_index == VERSION_OPTION)
{
fputs(version, stderr);
fputc('\n', stderr);
}
exit(EXIT_SUCCESS);
break;
default:
fprintf(stderr, help, *argv);
exit(EXIT_FAILURE);
break;
}
}
}
/*
*/

19
drawl.c
View file

@ -15,11 +15,11 @@
#define yyrestart drawl_yyrestart
#define yytext drawl_yytext
#line 19 "drawl.c"
#line 19 "lex.yy.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/svn/neostats/StupidServ/drawl.c,v 1.1 2003/02/18 13:52:31 fishwaldo Exp $
* $Header: /home/svn/neostats/StupidServ/drawl.c,v 1.2 2003/02/18 23:39:12 fishwaldo Exp $
*/
#define FLEX_SCANNER
@ -27,6 +27,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@ -40,7 +41,6 @@
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@ -1658,7 +1658,7 @@ char *yytext;
#define NIW 1
#define INW 2
#line 1662 "drawl.c"
#line 1662 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@ -1806,13 +1806,13 @@ YY_MALLOC_DECL
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
#line 46 "drawl.l"
#line 1816 "drawl.c"
#line 1816 "lex.yy.c"
if ( yy_init )
{
@ -4622,7 +4622,7 @@ YY_RULE_SETUP
#line 446 "drawl.l"
ECHO;
YY_BREAK
#line 4626 "drawl.c"
#line 4626 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(NIW):
case YY_STATE_EOF(INW):
@ -5188,11 +5188,6 @@ YY_BUFFER_STATE b;
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

View file

View file

View file

View file

19
jive.c
View file

@ -15,11 +15,11 @@
#define yyrestart jive_yyrestart
#define yytext jive_yytext
#line 19 "jive.c"
#line 19 "lex.yy.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/svn/neostats/StupidServ/jive.c,v 1.1 2003/02/18 13:52:46 fishwaldo Exp $
* $Header: /home/svn/neostats/StupidServ/jive.c,v 1.2 2003/02/18 23:39:16 fishwaldo Exp $
*/
#define FLEX_SCANNER
@ -27,6 +27,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@ -40,7 +41,6 @@
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@ -1676,7 +1676,7 @@ char *yytext;
#define NIW 1
#define INW 2
#line 1680 "jive.c"
#line 1680 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@ -1824,13 +1824,13 @@ YY_MALLOC_DECL
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
#line 47 "jive.l"
#line 1834 "jive.c"
#line 1834 "lex.yy.c"
if ( yy_init )
{
@ -3826,7 +3826,7 @@ YY_RULE_SETUP
#line 326 "jive.l"
ECHO;
YY_BREAK
#line 3830 "jive.c"
#line 3830 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(NIW):
case YY_STATE_EOF(INW):
@ -4392,11 +4392,6 @@ YY_BUFFER_STATE b;
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

View file

@ -15,11 +15,11 @@
#define yyrestart redneck_yyrestart
#define yytext redneck_yytext
#line 19 "redneck.c"
#line 19 "lex.yy.c"
/* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Header: /home/svn/neostats/StupidServ/redneck.c,v 1.1 2003/02/18 13:52:58 fishwaldo Exp $
* $Header: /home/svn/neostats/StupidServ/redneck.c,v 1.2 2003/02/18 23:39:18 fishwaldo Exp $
*/
#define FLEX_SCANNER
@ -27,6 +27,7 @@
#define YY_FLEX_MINOR_VERSION 5
#include <stdio.h>
#include <unistd.h>
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@ -40,7 +41,6 @@
#ifdef __cplusplus
#include <stdlib.h>
#include <unistd.h>
/* Use prototypes in function declarations. */
#define YY_USE_PROTOS
@ -1791,7 +1791,7 @@ char *yytext;
#define NIW 1
#define INW 2
#line 1795 "redneck.c"
#line 1795 "lex.yy.c"
/* Macros after this point can all be overridden by user definitions in
* section 1.
@ -1939,13 +1939,13 @@ YY_MALLOC_DECL
YY_DECL
{
register yy_state_type yy_current_state;
register char *yy_cp, *yy_bp;
register char *yy_cp = NULL, *yy_bp = NULL;
register int yy_act;
#line 50 "redneck.l"
#line 1949 "redneck.c"
#line 1949 "lex.yy.c"
if ( yy_init )
{
@ -4312,7 +4312,7 @@ YY_RULE_SETUP
#line 381 "redneck.l"
ECHO;
YY_BREAK
#line 4316 "redneck.c"
#line 4316 "lex.yy.c"
case YY_STATE_EOF(INITIAL):
case YY_STATE_EOF(NIW):
case YY_STATE_EOF(INW):
@ -4872,11 +4872,6 @@ YY_BUFFER_STATE b;
}
#ifndef YY_ALWAYS_INTERACTIVE
#ifndef YY_NEVER_INTERACTIVE
extern int isatty YY_PROTO(( int ));
#endif
#endif
#ifdef YY_USE_PROTOS
void yy_init_buffer( YY_BUFFER_STATE b, FILE *file )

4
ss.c
View file

@ -20,7 +20,7 @@
** USA
**
** NeoStats CVS Identification
** $Id: ss.c,v 1.1 2003/02/18 13:52:07 fishwaldo Exp $
** $Id: ss.c,v 1.2 2003/02/18 23:39:19 fishwaldo Exp $
*/
#include <stdio.h>
@ -47,7 +47,7 @@ static void s_version(User *u);
Module_Info my_info[] = { {
"StupidServ",
"A Language Translator",
"1.0"
"1.1"
} };