File: dbobj.h.in

package info (click to toggle)
courier 1.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 49,084 kB
  • sloc: ansic: 126,176; cpp: 24,278; sh: 8,957; perl: 4,127; makefile: 3,192; sed: 16
file content (53 lines) | stat: -rw-r--r-- 1,090 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef	dbobj_h
#define	dbobj_h


#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