aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:25:28 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2011-08-01 11:25:28 +0000
commit86d5656ddf37a9e6880d18a9c22e60b7a976153f (patch)
tree32897379c40bccbbaf149afd9cd326d271d92d45
parenta5088330ed9d2e672152b81720f3f35ad15a3bce (diff)
downloadgdbm-86d5656ddf37a9e6880d18a9c22e60b7a976153f.tar.gz
gdbm-86d5656ddf37a9e6880d18a9c22e60b7a976153f.tar.bz2
Remove the legacy __P stuff.
-rw-r--r--ChangeLog4
-rw-r--r--src/gdbm.proto42
2 files changed, 19 insertions, 27 deletions
diff --git a/ChangeLog b/ChangeLog
index b1b789f..703db6a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2011-08-01 Sergey Poznyakoff <gray@gnu.org.ua>
+ * src/gdbm.proto: Remove the legacy __P stuff.
+
+2011-08-01 Sergey Poznyakoff <gray@gnu.org.ua>
+
* Makefile.am (ACLOCAL_AMFLAGS): New variable.
* configure.ac: Use AM_INIT_AUTOMAKE with arguments.
diff --git a/src/gdbm.proto b/src/gdbm.proto
index d022f3a..d84bfa1 100644
--- a/src/gdbm.proto
+++ b/src/gdbm.proto
@@ -63,18 +63,6 @@ typedef struct {
/* The file information header. This is good enough for most applications. */
typedef struct gdbm_file_info *GDBM_FILE;
-/* Determine if the C(++) compiler requires complete function prototype */
-#ifndef __P
-#if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
-#define __P(x) x
-#else
-#define __P(x) ()
-#ifndef const
-#define const /* */
-#endif
-#endif
-#endif
-
/* External variable, the gdbm build release string. */
extern const char *gdbm_version;
@@ -86,21 +74,21 @@ extern "C" {
/* GDBM external functions. */
-extern GDBM_FILE gdbm_open __P((const char *, int, int, int,
- void (*)(const char *)));
-extern void gdbm_close __P((GDBM_FILE));
-extern int gdbm_store __P((GDBM_FILE, datum, datum, int));
-extern datum gdbm_fetch __P((GDBM_FILE, datum));
-extern int gdbm_delete __P((GDBM_FILE, datum));
-extern datum gdbm_firstkey __P((GDBM_FILE));
-extern datum gdbm_nextkey __P((GDBM_FILE, datum));
-extern int gdbm_reorganize __P((GDBM_FILE));
-extern void gdbm_sync __P((GDBM_FILE));
-extern int gdbm_exists __P((GDBM_FILE, datum));
-extern int gdbm_setopt __P((GDBM_FILE, int, int *, int));
-extern int gdbm_fdesc __P((GDBM_FILE));
-extern int gdbm_export __P((GDBM_FILE, const char *, int, int));
-extern int gdbm_import __P((GDBM_FILE, const char *, int));
+extern GDBM_FILE gdbm_open (const char *, int, int, int,
+ void (*)(const char *));
+extern void gdbm_close (GDBM_FILE);
+extern int gdbm_store (GDBM_FILE, datum, datum, int);
+extern datum gdbm_fetch (GDBM_FILE, datum);
+extern int gdbm_delete (GDBM_FILE, datum);
+extern datum gdbm_firstkey (GDBM_FILE);
+extern datum gdbm_nextkey (GDBM_FILE, datum);
+extern int gdbm_reorganize (GDBM_FILE);
+extern void gdbm_sync (GDBM_FILE);
+extern int gdbm_exists (GDBM_FILE, datum);
+extern int gdbm_setopt (GDBM_FILE, int, int *, int);
+extern int gdbm_fdesc (GDBM_FILE);
+extern int gdbm_export (GDBM_FILE, const char *, int, int);
+extern int gdbm_import (GDBM_FILE, const char *, int);
#if defined(__cplusplus) || defined(c_plusplus)
}

Return to:

Send suggestions and report system problems to the System administrator.