diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-29 03:23:43 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-29 03:23:43 +0000 |
commit | 3db3a9da5f3860852c8b71db255a42fc81d66b82 (patch) | |
tree | 93ad43b9d8d7010d6fd5da87b1316af5f6500f20 /mktable.c | |
parent | [w3m-dev 02919] no need of width (diff) | |
download | w3m-3db3a9da5f3860852c8b71db255a42fc81d66b82.tar.gz w3m-3db3a9da5f3860852c8b71db255a42fc81d66b82.zip |
[w3m-dev 02921] use inttypes.h instead of stdint.h
* configure: check inttypes.h instead of stdint.h
* config.h.dist: s/STDINT_H/INTTYPES_H/
* mktable.c: use inttypes.h instead of stdint.h
From: Fumitoshi UKAI <ukai@debian.or.jp>
Diffstat (limited to 'mktable.c')
-rw-r--r-- | mktable.c | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -1,12 +1,12 @@ -/* $Id: mktable.c,v 1.5 2001/12/23 14:31:38 ukai Exp $ */ +/* $Id: mktable.c,v 1.6 2002/01/29 03:23:44 ukai Exp $ */ #include "config.h" #include <stdio.h> #include <stdlib.h> #include <ctype.h> -#ifdef HAVE_STDINT_H -#include "stdint.h" +#ifdef HAVE_INTTYPES_H +#include <inttypes.h> #else -typedef unsigned int uintptr_t; +typedef unsigned long uintptr_t; #endif #include "hash.h" #include "Str.h" @@ -14,16 +14,24 @@ typedef unsigned int uintptr_t; #include "gcmain.c" +/* *INDENT-OFF* */ defhash(HashItem_ss *, int, hss_i) +/* *INDENT-ON* */ + #define keycomp(x,y) ((x)==(y)) - static uintptr_t hashfunc(HashItem_ss * x) + +static uintptr_t +hashfunc(HashItem_ss * x) { return (uintptr_t) x; } +/* *INDENT-OFF* */ defhashfunc(HashItem_ss *, int, hss_i) - int - MAIN(int argc, char *argv[], char **envp) +/* *INDENT-ON* */ + +int +MAIN(int argc, char *argv[], char **envp) { FILE *f; Hash_ss *hash; |