dbobj.h.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:1k
- #ifndef dbobj_h
- #define dbobj_h
- /*
- ** $Id: dbobj.h.in,v 1.3 2000/07/01 23:18:18 mrsam Exp $
- */
- /*
- ** Copyright 1998 - 2000 Double Precision, Inc.
- ** See COPYING for distribution information.
- */
- static const char dbobj_h_rcsid[]="$Id: dbobj.h.in,v 1.3 2000/07/01 23:18:18 mrsam Exp $";
- #if @USE_GDBM@
- #include "gdbmobj/gdbmobj.h"
- #define DbObj GdbmObj
- #define dbobj gdbmobj
- #define dbobj_init gdbmobj_init
- #define dbobj_open gdbmobj_open
- #define dbobj_close gdbmobj_close
- #define dbobj_isopen gdbmobj_isopen
- #define dbobj_fetch gdbmobj_fetch
- #define dbobj_exists gdbmobj_exists
- #define dbobj_delete gdbmobj_delete
- #define dbobj_store gdbmobj_store
- #define dbobj_firstkey gdbmobj_firstkey
- #define dbobj_nextkey gdbmobj_nextkey
- #define DBNAME "gdbm"
- #endif
- #if @USE_DB@
- #include "bdbobj/bdbobj.h"
- #define DbObj BDbObj
- #define dbobj bdbobj
- #define dbobj_init bdbobj_init
- #define dbobj_open bdbobj_open
- #define dbobj_close bdbobj_close
- #define dbobj_isopen bdbobj_isopen
- #define dbobj_fetch bdbobj_fetch
- #define dbobj_exists bdbobj_exists
- #define dbobj_delete bdbobj_delete
- #define dbobj_store bdbobj_store
- #define dbobj_firstkey bdbobj_firstkey
- #define dbobj_nextkey bdbobj_nextkey
- #if DB_VERSION_MAJOR >= 3
- #define DBNAME "db3"
- #else
- #if DB_VERSION_MAJOR >= 2
- #define DBNAME "db2"
- #else
- #define DBNAME "db1"
- #endif
- #endif
- #endif
- #endif