KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
io.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hdr.h"

Functions

static int next (void)
 
static int rnum (void)
 
static void rdesc (int)
 
static void rdflt (void)
 
static void rhints (void)
 
static void rliq (void)
 
static void rlocs (void)
 
static void rtrav (void)
 
static void rvoc (void)
 
void getin (char **wrd1, char **wrd2)
 
int yes (int x, int y, int z)
 
int yesm (int x, int y, int z)
 
void rdata ()
 
void rspeak (int msg)
 
void mspeak (int msg)
 
void speak (struct text *msg) const
 
void pspeak (int m, int skip)
 

Variables

static const char rcsid []
 
char * inptr
 
int outsw = 0
 
const char iotape [] = "Ax3F'\003tt$8h\315qer*h\017nGKrX\207:!l"
 
const char * tape = iotape
 
char breakch
 
char nbf [12]
 
char * seekhere
 

Function Documentation

◆ getin()

void getin ( char ** wrd1,
char ** wrd2 )

References FLUSHLINE, getchar(), MAXSTR, printf, and s.

Referenced by main(), trkill(), and wizard().

◆ mspeak()

void mspeak ( int msg)

References mtext, and speak().

Referenced by done(), Start(), wizard(), and yesm().

◆ next()

static int next ( void )
static

References inptr, iotape, outsw, and tape.

Referenced by rdata(), rnum(), rtrav(), rvoc(), and shoot().

◆ pspeak()

void pspeak ( int m,
int skip )

◆ rdata()

void rdata ( void )

◆ rdesc()

static void rdesc ( int sect)
static

◆ rdflt()

static void rdflt ( void )
static

References actspk, rnum(), and verb.

Referenced by rdata().

◆ rhints()

static void rhints ( void )
static

References hints, hntmax, and rnum().

Referenced by rdata().

◆ rliq()

static void rliq ( void )
static

References breakch, cond, LF, rnum(), and setbit.

Referenced by rdata().

◆ rlocs()

static void rlocs ( void )
static

References breakch, fixd, obj, plac, rnum(), and TAB.

Referenced by rdata().

◆ rnum()

static int rnum ( void )
static

References breakch, iotape, LF, nbf, next(), s, TAB, and tape.

Referenced by rdesc(), rdflt(), rhints(), rliq(), rlocs(), rtrav(), and rvoc().

◆ rspeak()

◆ rtrav()

static void rtrav ( void )
static

◆ rvoc()

static void rvoc ( void )
static

References FLUSHLF, LF, next(), rnum(), s, TAB, and vocab().

Referenced by rdata().

◆ speak()

void speak ( struct text * msg) const

References blklin, iotape, LF, putchar(), s, TAB, and tape.

Referenced by mspeak(), and rspeak().

◆ yes()

int yes ( int x,
int y,
int z )

References FALSE, FLUSHLINE, getchar(), printf, rspeak(), TRUE, x, y, and z.

Referenced by checkhints(), die(), main(), and startup().

◆ yesm()

int yesm ( int x,
int y,
int z )

References FALSE, FLUSHLINE, getchar(), mspeak(), printf, TRUE, x, y, and z.

Referenced by wizard().

Variable Documentation

◆ breakch

char breakch

Referenced by rdata(), rliq(), rlocs(), rnum(), and rtrav().

◆ inptr

char* inptr

Referenced by next(), rdata(), and rdesc().

◆ iotape

const char iotape[] = "Ax3F'\003tt$8h\315qer*h\017nGKrX\207:!l"

Referenced by next(), pspeak(), rnum(), and speak().

◆ nbf

char nbf[12]

Referenced by rnum().

◆ outsw

int outsw = 0

Referenced by next(), and rdesc().

◆ rcsid

const char rcsid[]
static
Initial value:
=
"$FreeBSD: src/games/adventure/io.c,v 1.8.2.1 2001/03/05 11:43:11 kris Exp $"

◆ seekhere

char* seekhere

Referenced by rdesc().

◆ tape

const char* tape = iotape

Referenced by next(), pspeak(), rnum(), and speak().