new upstream

git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@10080 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
joey
2004-02-14 21:35:37 +00:00
parent 26fb70d304
commit a02c126403
224 changed files with 5624 additions and 2217 deletions

View File

@@ -1,4 +1,4 @@
/* $NetBSD: quiz.c,v 1.19 2003/08/07 09:37:34 agc Exp $ */
/* $NetBSD: quiz.c,v 1.20 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1991, 1993\n\
#if 0
static char sccsid[] = "@(#)quiz.c 8.3 (Berkeley) 5/4/95";
#else
__RCSID("$NetBSD: quiz.c,v 1.19 2003/08/07 09:37:34 agc Exp $");
__RCSID("$NetBSD: quiz.c,v 1.20 2004/01/27 20:30:30 jsm Exp $");
#endif
#endif /* not lint */
@@ -65,16 +65,16 @@ static QE qlist;
static int catone, cattwo, tflag;
static u_int qsize;
char *appdstr __P((char *, const char *, size_t));
void downcase __P((char *));
void get_cats __P((char *, char *));
void get_file __P((const char *));
int main __P((int, char *[]));
const char *next_cat __P((const char *));
void quiz __P((void));
void score __P((u_int, u_int, u_int));
void show_index __P((void));
void usage __P((void)) __attribute__((__noreturn__));
char *appdstr(char *, const char *, size_t);
void downcase(char *);
void get_cats(char *, char *);
void get_file(const char *);
int main(int, char *[]);
const char *next_cat(const char *);
void quiz(void);
void score(u_int, u_int, u_int);
void show_index(void);
void usage(void) __attribute__((__noreturn__));
int
main(argc, argv)

View File

@@ -1,4 +1,4 @@
/* $NetBSD: quiz.h,v 1.6 2003/08/07 09:37:34 agc Exp $ */
/* $NetBSD: quiz.h,v 1.7 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -54,6 +54,6 @@ typedef struct qentry {
extern char rxperr[];
int rxp_compile __P((const char *));
char *rxp_expand __P((void));
int rxp_match __P((const char *));
int rxp_compile(const char *);
char *rxp_expand(void);
int rxp_match(const char *);

View File

@@ -1,4 +1,4 @@
/* $NetBSD: rxp.c,v 1.11 2003/08/07 09:37:34 agc Exp $ */
/* $NetBSD: rxp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)rxp.c 8.1 (Berkeley) 5/31/93";
#else
__RCSID("$NetBSD: rxp.c,v 1.11 2003/08/07 09:37:34 agc Exp $");
__RCSID("$NetBSD: rxp.c,v 1.12 2004/01/27 20:30:30 jsm Exp $");
#endif
#endif /* not lint */
@@ -82,9 +82,9 @@ typedef short Rxp_t; /* type for regexp tokens */
static Rxp_t rxpbuf[RXP_LINE_SZ]; /* compiled regular expression buffer */
char rxperr[128]; /* parser error message */
static int rxp__compile __P((const char *, int));
static char *rxp__expand __P((int));
static int rxp__match __P((const char *, int, Rxp_t *, Rxp_t *, const char *));
static int rxp__compile(const char *, int);
static char *rxp__expand(int);
static int rxp__match(const char *, int, Rxp_t *, Rxp_t *, const char *);
int
rxp_compile(s)