aboutsummaryrefslogtreecommitdiffstats
path: root/mktable.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-29 16:23:37 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-29 16:23:37 +0000
commit80727e4b0244a99b091b16051cb239d8964cae00 (patch)
tree3910dfe3f71884e1febb2b27e078f6e7d02f22af /mktable.c
parent[w3m-dev 02921] use inttypes.h instead of stdint.h (diff)
downloadw3m-80727e4b0244a99b091b16051cb239d8964cae00.tar.gz
w3m-80727e4b0244a99b091b16051cb239d8964cae00.zip
[w3m-dev 02920] don't use inttypes.h and/or stdint.h
* mktable.c: remove inttypes.h, uintptr_t, use unsigned long instead * configure: remove inttypes.h detection * config.h.dist: remove HAVE_INTTYPES_H From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
Diffstat (limited to 'mktable.c')
-rw-r--r--mktable.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/mktable.c b/mktable.c
index d2b3bec..ea5e9e5 100644
--- a/mktable.c
+++ b/mktable.c
@@ -1,13 +1,8 @@
-/* $Id: mktable.c,v 1.6 2002/01/29 03:23:44 ukai Exp $ */
+/* $Id: mktable.c,v 1.7 2002/01/29 16:23:37 ukai Exp $ */
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#else
-typedef unsigned long uintptr_t;
-#endif
#include "hash.h"
#include "Str.h"
#include <gc.h>
@@ -20,10 +15,11 @@ defhash(HashItem_ss *, int, hss_i)
#define keycomp(x,y) ((x)==(y))
-static uintptr_t
+/* XXX: we assume sizeof(unsigned long) >= sizeof(void *) */
+static unsigned long
hashfunc(HashItem_ss * x)
{
- return (uintptr_t) x;
+ return (unsigned long) x;
}
/* *INDENT-OFF* */