[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>
This commit is contained in:
Fumitoshi UKAI
2002-01-29 03:23:43 +00:00
parent 796913920d
commit 3db3a9da5f
4 changed files with 32 additions and 16 deletions

View File

@@ -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;