database.c File Reference

#include <string.h>
#include <stdio.h>
#include "advent.h"
#include "advdec.h"
#include "advtext.h"

Include dependency graph for database.c:

Go to the source code of this file.

Functions

 _PROTOTYPE (void rdupto,(FILE *, int, int, char *))
 _PROTOTYPE (void rdskip,(FILE *, int, int))
void rdupto (FILE *fdi, int uptoc, int print, char *string)
void rdskip (FILE *fdi, int skipc, int n)
boolean yes (int msg1, int msg2, int msg3)
void rspeak (int msg)
void pspeak (int item, int state)
void desclg (int loc)
void descsh (int loc)

Variables

static char oline [256]


Function Documentation

_PROTOTYPE void  rdskip,
(FILE *, int, int) 
 

_PROTOTYPE void  rdupto,
(FILE *, int, int, char *) 
 

void desclg int  loc  ) 
 

Definition at line 124 of file database.c.

References fd1, fseek(), and rdupto().

Referenced by describe(), turn(), and vlook().

void descsh int  loc  ) 
 

Definition at line 135 of file database.c.

References fd2, fseek(), and rdupto().

Referenced by describe().

void pspeak int  item,
int  state
 

Definition at line 110 of file database.c.

References FALSE, fd3, fseek(), oline, printf, rdskip(), rdupto(), and strncmp().

Referenced by inventory(), ivfoo(), lookin(), spcmove(), turn(), vdrop(), vinsert(), vkill(), vpour(), vtake(), and vwave().

void rdskip FILE fdi,
int  skipc,
int  n
 

Definition at line 51 of file database.c.

References bug(), c, EOF, and getc.

Referenced by pspeak().

void rdupto FILE fdi,
int  uptoc,
int  print,
char *  string
 

Definition at line 18 of file database.c.

References _CONST, c, EOF, getc, i, key, and putchar.

Referenced by desclg(), descsh(), pspeak(), and rspeak().

void rspeak int  msg  ) 
 

Definition at line 95 of file database.c.

References fd4, fseek(), printf, and rdupto().

Referenced by actspk(), badmove(), check_next(), death(), describe(), do_battle(), domove(), doobj(), dwarfend(), dwarves(), english(), goback(), inventory(), itverb(), ivblast(), ivbrief(), ivcombo(), ivfoo(), ivkill(), ivlook(), lookin(), main(), spcmove(), stimer(), trverb(), turn(), vanswer(), vblow(), vbreak(), vclose(), vdial(), vdrink(), vdrop(), vextract(), vfeed(), vfill(), vfind(), vhit(), vinsert(), vkill(), vlock(), vlook(), voff(), von(), vopen(), vpick(), vplay(), vpour(), vput(), vread(), vtake(), vthrow(), vturn(), vunlock(), vwake(), vwave(), vwear(), vyank(), and yes().

boolean yes int  msg1,
int  msg2,
int  msg3
 

Definition at line 67 of file database.c.

References answer, ask(), FALSE, fputs(), INPUTBUFLEN, rspeak(), stdout, and TRUE.

Referenced by chkdots(), chkentry(), chkilist(), chkmap(), chksymlinkzone(), chkword(), counterror(), death(), descendtree(), do_hint(), ivquit(), lsi(), lsuper(), main(), Remove(), vkill(), vread(), and vtake().


Variable Documentation

char oline[256] [static]
 

Definition at line 9 of file database.c.

Referenced by pspeak().


Generated on Fri Apr 14 22:58:09 2006 for minix by  doxygen 1.4.6