dbobj.h.in
上传用户:s81996212
上传日期:2007-01-04
资源大小:722k
文件大小:1k
源码类别:

WEB邮件程序

开发平台:

C/C++

  1. #ifndef dbobj_h
  2. #define dbobj_h
  3. /*
  4. ** $Id: dbobj.h.in,v 1.3 2000/07/01 23:18:18 mrsam Exp $
  5. */
  6. /*
  7. ** Copyright 1998 - 2000 Double Precision, Inc.
  8. ** See COPYING for distribution information.
  9. */
  10. static const char dbobj_h_rcsid[]="$Id: dbobj.h.in,v 1.3 2000/07/01 23:18:18 mrsam Exp $";
  11. #if @USE_GDBM@
  12. #include "gdbmobj/gdbmobj.h"
  13. #define DbObj GdbmObj
  14. #define dbobj gdbmobj
  15. #define dbobj_init gdbmobj_init
  16. #define dbobj_open gdbmobj_open
  17. #define dbobj_close gdbmobj_close
  18. #define dbobj_isopen gdbmobj_isopen
  19. #define dbobj_fetch gdbmobj_fetch
  20. #define dbobj_exists gdbmobj_exists
  21. #define dbobj_delete gdbmobj_delete
  22. #define dbobj_store gdbmobj_store
  23. #define dbobj_firstkey gdbmobj_firstkey
  24. #define dbobj_nextkey gdbmobj_nextkey
  25. #define DBNAME "gdbm"
  26. #endif
  27. #if @USE_DB@
  28. #include "bdbobj/bdbobj.h"
  29. #define DbObj BDbObj
  30. #define dbobj bdbobj
  31. #define dbobj_init bdbobj_init
  32. #define dbobj_open bdbobj_open
  33. #define dbobj_close bdbobj_close
  34. #define dbobj_isopen bdbobj_isopen
  35. #define dbobj_fetch bdbobj_fetch
  36. #define dbobj_exists bdbobj_exists
  37. #define dbobj_delete bdbobj_delete
  38. #define dbobj_store bdbobj_store
  39. #define dbobj_firstkey bdbobj_firstkey
  40. #define dbobj_nextkey bdbobj_nextkey
  41. #if DB_VERSION_MAJOR >= 3
  42. #define DBNAME "db3"
  43. #else
  44. #if DB_VERSION_MAJOR >= 2
  45. #define DBNAME "db2"
  46. #else
  47. #define DBNAME "db1"
  48. #endif
  49. #endif
  50. #endif
  51. #endif