projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b8f445
)
The type of the hash_cb() size argument is tricky.
author
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 16 Nov 2000 01:09:22 +0000
(
01:09
+0000)
committer
Jarkko Hietaniemi
<jhi@iki.fi>
Thu, 16 Nov 2000 01:09:22 +0000
(
01:09
+0000)
p4raw-id: //depot/perl@7703
ext/DB_File/DB_File.xs
patch
|
blob
|
history
diff --git
a/ext/DB_File/DB_File.xs
b/ext/DB_File/DB_File.xs
index
f6df68a
..
2ea8a61
100644
(file)
--- a/
ext/DB_File/DB_File.xs
+++ b/
ext/DB_File/DB_File.xs
@@
-584,13
+584,19
@@
const DBT * key2 ;
return (retval) ;
}
+#ifdef BERKELEY_DB_1_OR_2
+# define HASH_CB_SIZE_TYPE size_t
+#else
+# define HASH_CB_SIZE_TYPE u_int32_t
+#endif
+
static DB_Hash_t
#ifdef CAN_PROTOTYPE
-hash_cb(const void *data,
u_int32_t
size)
+hash_cb(const void *data,
HASH_CB_SIZE_TYPE
size)
#else
hash_cb(data, size)
const void * data ;
-
u_int32_t
size ;
+
HASH_CB_SIZE_TYPE
size ;
#endif
{
#ifdef dTHX