|
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 - metrics - downloadIndex: T d
Length: 1477 (0x5c5) Types: TextFile Names: »dbase.h«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦dc59850a2⟧ »EurOpenD22/pp5.0/pp-5.tar.Z« └─⟦e5a54fb17⟧ └─⟦this⟧ »pp-5.0/h/dbase.h«
/* dbase.h: Definitions for the dbm database */ /* * @(#) $Header: /cs/research/pp/hubris/pp-beta/h/RCS/dbase.h,v 5.0 90/09/20 16:50:00 pp Exp Locker: pp $ * * $Log: dbase.h,v $ * Revision 5.0 90/09/20 16:50:00 pp * rcsforce : 5.0 public release * * */ #ifndef _H_DBASE #define _H_DBASE #include "config.h" /* most pcc based compilers screw up the return of structures. * They actually return a pointer to a static struct, which is copied. * Here is a HACK to get such a pcc version of the library to work with the * gnu structure returning convention. NB: need a cpp which allows recursive * definitions (such as gcc) */ #ifdef GDBM #include "gdbm.h" #else #ifdef NDBM #ifndef GCC_DBM_OK #ifdef __GNUC__ #define dbm_fetch *dbm_fetch #define dbm_firstkey *dbm_firstkey #define dbm_nextkey *dbm_nextkey #endif /* __GNUC__ */ #endif /* !GCC_DBM_OK */ #include "ndbm.h" #else #ifndef GCC_DBM_OK #ifdef __GNUC__ #define fetch *fetch #define makdatum *makdatum #define firstkey *firstkey #define nextkey *nextkey #define firsthash *firsthash #endif /* __GNUC__ */ #endif /* !GCC_DBM_OK */ #include "dbm.h" #endif #endif #define MAXDBENTRIES 32 #define FS '\034' /* the dbm seperator character */ #define ENTRYSIZE 1024 /* maximum database entry size */ typedef struct { char *db_table; char *db_value; } Dbvalue [MAXDBENTRIES], *Dbptr; #endif