|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - downloadIndex: ┃ T d ┃
Length: 2025 (0x7e9) Types: TextFile Names: »defs.h«
└─⟦87ddcff64⟧ Bits:30001253 CPHDIST85 Tape, 1985 Autumn Conference Copenhagen └─ ⟦this⟧ »cph85dist/rman/daemon/defs.h«
/* * $Header: defs.h,v 1.3 85/08/27 15:16:31 broome Exp $ */ /* * $Log: defs.h,v $ * Revision 1.3 85/08/27 15:16:31 broome * Last cleanup before release. * * Revision 1.2 85/07/16 11:16:36 broome * Added global "debug" variable. * * Revision 1.1 85/07/05 18:19:11 broome * Initial revision */ #include <stdio.h> #define DIRS 11 /* one name can reference DIRS-1 directories */ #define TYPES 10 /* and at most TYPES cpu types */ struct section { char *name; /* name of section */ struct dir *dirs[DIRS]; /* array of pointers to directories */ struct section *next; /* next one in chain */ }; struct dir { char *man; /* full pathname of unformatted directory */ char *cat; /* full pathname containing formatted files */ char **suff; /* array of file suffixes */ struct dir *next; /* next one in list */ }; struct where { /* structure returned by find() */ char *name; /* name of file topic asked for */ char *section; /* section asked for (if any) */ char subsec; /* subsection char, if any */ int found; /* 1 if file found, 0 if not */ char *man; /* path to unformatted form */ char *cat; /* full path to formatted form */ }; struct type { char *name; /* cpu type name */ struct dir *dir; /* pointer to top of dir list */ struct section *sec; /* top of section list */ }; struct type types[TYPES]; /* all known cpu types */ struct section *sections; /* top of list of sections */ struct dir *dirs; /* top of list of directories */ int debug; typedef struct dir DIR; typedef struct section SEC; char *getword(); char *malloc(); char *strsave(); SEC *find_section(); struct where *find(); #define eq(a,b) (strcmp (a, b) == 0)