#include <sys/types.h>#include <string.h>#include <stdlib.h>#include <stdio.h>#include <unistd.h>Include dependency graph for ifdef.c:

Go to the source code of this file.
Data Structures | |
| struct | DEFINE |
Defines | |
| #define | DEF 1 |
| #define | UNDEF 2 |
| #define | IGN 3 |
| #define | MUTABLE 1 |
| #define | IMMUTABLE 2 |
| #define | NO 0 |
| #define | YES 1 |
| #define | Define(x, y) defit(x,y,DEF) |
| #define | Undefine(x, y) defit(x,y,UNDEF) |
| #define | Ignore(x, y) defit(x,y,IGN) |
| #define | Goto { line++; if (ch!='\n') gotoeoln(); } |
| #define | Print { line++; if (ch!='\n') prteoln(); } |
Functions | |
| _PROTOTYPE (int main,(int argc, char **argv)) | |
| _PROTOTYPE (char fgetarg,(FILE *stream, char *cbuf)) | |
| _PROTOTYPE (int find,(char *symd)) | |
| _PROTOTYPE (void defit,(char *sym, int redef, int typed)) | |
| _PROTOTYPE (void stop,(void)) | |
| _PROTOTYPE (char getendif,(void)) | |
| char | fgetarg (FILE *stream, char *cbuf) |
| int | find (char *sym) |
| void | defit (char *sym, char redef, char type) |
| void | stop () |
| void | gotoeoln () |
| void | prteoln () |
| void | printtable () |
| char | getendif () |
| void | gettable () |
| void | parse () |
| void | usage () |
| int | main (int argc, argv) |
Variables | |
| FILE * | zin |
| DEFINE * | defptr |
| DEFINE * | defend |
| DEFINE * | deftemp |
| int | line = 1 |
| int | table = 0 |
| int | optind |
| char * | optarg |
|
|
Definition at line 24 of file ifdef.c. Referenced by gettable(), parse(), and printtable(). |
|
|
|
|
|
Definition at line 181 of file ifdef.c. Referenced by Block_Pointers(), Block_Type(), Draw_Block(), Draw_Info(), Draw_Map(), Draw_Offset(), Draw_Pointers(), Draw_Prompt(), Draw_Strings(), Draw_Words(), Draw_Zone_Numbers(), Erase_Prompt(), gettable(), Map_Pointers(), parse(), Warning(), and Word_Pointers(). |
|
|
|
|
|
Definition at line 119 of file ifdef.c. Referenced by main(). |
|
|
|
|
|
Definition at line 29 of file ifdef.c. Referenced by gettable(), main(), and parse(). |
|
|
Definition at line 33 of file ifdef.c. Referenced by slave(). |
|
|
|
|
|
|
|
|
Definition at line 118 of file ifdef.c. Referenced by gettable(), main(), and parse(). |
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||
|
Definition at line 124 of file ifdef.c. References c, defend, defptr, deftemp, exit(), find(), fprintf(), IMMUTABLE, malloc(), DEFINE::next, NULL, DEFINE::redef, stderr, strcpy(), strlen(), DEFINE::symbol, and DEFINE::type. |
|
||||||||||||
|
Definition at line 72 of file ifdef.c. References EOF, feof, fgetc(), and i. Referenced by getendif(), gettable(), and parse(). |
|
|
Definition at line 101 of file ifdef.c. References defptr, deftemp, DEFINE::next, strcmp, DEFINE::symbol, and DEFINE::type. |
|
|
Definition at line 240 of file ifdef.c. References EOF, fgetarg(), fgetc(), Print, printf, putchar, skip, stop(), strcmp, and zin. Referenced by parse(). |
|
|
Definition at line 274 of file ifdef.c. References DEF, Define, EOF, fgetarg(), fgetc(), find(), Goto, MUTABLE, stop(), strcmp, Undefine, and zin. |
|
|
|
|
||||||||||||
|
Definition at line 451 of file ifdef.c. References c, Define, EOF, exit(), fclose(), fopen(), getopt(), gettable(), Ignore, IMMUTABLE, MUTABLE, NULL, optarg, parse(), perror(), stdin, strcpy(), Undefine, usage, and zin. |
|
|
Definition at line 319 of file ifdef.c. References DEF, Define, EOF, fgetarg(), fgetc(), find(), getendif(), Goto, IGN, MUTABLE, Print, printf, putchar, skip, stop(), strcmp, Undefine, and zin. Referenced by main(), and read_config(). |
|
|
Definition at line 215 of file ifdef.c. References DEF, defptr, DEFINE::next, printf, DEFINE::symbol, DEFINE::type, and UNDEF. Referenced by stop(). |
|
|
|
|
|
Definition at line 173 of file ifdef.c. References exit(), fclose(), printtable(), and zin. Referenced by asc_ul(), asc_uqd(), delete(), doargs(), getendif(), gettable(), gotoeoln(), l_strncpy(), matcher(), parse(), prteoln(), and tar_chksm(). |
|
|
|
|
|
Definition at line 47 of file ifdef.c. Referenced by defit(). |
|
|
Definition at line 46 of file ifdef.c. Referenced by defit(), find(), and printtable(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 45 of file ifdef.c. Referenced by getendif(), gettable(), gotoeoln(), main(), parse(), prteoln(), and stop(). |
1.4.6