aboutsummaryrefslogtreecommitdiff
path: root/src/gdbmdefs.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:21:56 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:21:56 +0000
commitc5dc3d06f65e43537b534fec7766bb17f2ead5f6 (patch)
tree96d8431c4688e82479ebe695fb8243758eb65aaf /src/gdbmdefs.h
parentaf73e074122b38368ee872132477fd17a889254a (diff)
downloadgdbm-c5dc3d06f65e43537b534fec7766bb17f2ead5f6.tar.gz
gdbm-c5dc3d06f65e43537b534fec7766bb17f2ead5f6.tar.bz2
Include gdbm.h
(datum): Remove duplicate declaration. (gdbm_file_info): Change to struct gdbm_file_info
Diffstat (limited to 'src/gdbmdefs.h')
-rw-r--r--src/gdbmdefs.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/gdbmdefs.h b/src/gdbmdefs.h
index f1f3ee3..190eb71 100644
--- a/src/gdbmdefs.h
+++ b/src/gdbmdefs.h
@@ -19,17 +19,10 @@
#include "systems.h"
#include "gdbmconst.h"
+#include "gdbm.h"
/* The type definitions are next. */
-/* The data and key structure. This structure is defined for compatibility. */
-
-typedef struct {
- char *dptr;
- int dsize;
- } datum;
-
-
/* The available file space is stored in an "avail" table. The one with
most activity is contained in the file header. (See below.) When that
one filles up, it is split in half and half is pushed on an "avail
@@ -137,7 +130,7 @@ typedef struct {
a gdbm file. This allows multiple gdbm files to be opened at the same
time by one program. */
-typedef struct {
+struct gdbm_file_info {
/* Global variables and pointers to dynamic variables used by gdbm. */
/* The file name. */
@@ -209,7 +202,7 @@ typedef struct {
_gdbm_mapped_{write|read} will remap the
region according to the above fields. */
- } gdbm_file_info;
+ };
/* Now define all the routines in use. */
#include "proto.h"

Return to:

Send suggestions and report system problems to the System administrator.