comparison modules/inttypes @ 7207:a1deb716fd26

Rewritten inttypes module. New modules imaxabs, imaxdiv.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 Aug 2006 12:54:47 +0000
parents be9e01d008cb
children 6f8e77bc9fde
comparison
equal deleted inserted replaced
7206:4e6b2be7a129 7207:a1deb716fd26
1 Description: 1 Description:
2 A wrapper C99 <inttypes.h> header which will always include <stdint.h> 2 An <inttypes.h> that nearly conforms to C99.
3 (possibly the *almost* C99 compliant GNULIB <stdint.h>) and prototypes for the
4 strtoimax & strtoumax functions.
5 3
6 Files: 4 Files:
7 lib/inttypes.h 5 lib/inttypes_.h
8 m4/include_next.m4
9 m4/absolute-header.m4 6 m4/absolute-header.m4
10 m4/_inttypes_h.m4 7 m4/inttypes-pri.m4
8 m4/inttypes.m4
11 9
12 Depends-on: 10 Depends-on:
11 stdint
13 12
14 configure.ac: 13 configure.ac:
15 gl_INTTYPES_H 14 gl_INTTYPES_H
16 15
17 Makefile.am: 16 Makefile.am:
18 EXTRA_DIST += inttypes.h 17 BUILT_SOURCES += $(INTTYPES_H)
18 EXTRA_DIST += inttypes_.h
19
20 # We need the following in order to create <inttypes.h> when the system
21 # doesn't have one that works with the given compiler.
22 inttypes.h: inttypes_.h
23 sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \
24 -e 's/@''ABSOLUTE_INTTYPES_H''@/$(ABSOLUTE_INTTYPES_H)/g' \
25 -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \
26 -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \
27 -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \
28 -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \
29 -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \
30 -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \
31 -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \
32 < $(srcdir)/inttypes_.h > $@-t
33 mv $@-t $@
34 MOSTLYCLEANFILES += inttypes.h inttypes.h-t
19 35
20 Include: 36 Include:
21 #include <inttypes.h> 37 #include <inttypes.h>
22 38
23 License: 39 License: