diff options
author | Bruno Haible <bruno@clisp.org> | 2006-08-28 12:54:47 +0000 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2006-08-28 12:54:47 +0000 |
commit | 81941926b6fc72b671e7eb5e98c5e4e55e85eb0e (patch) | |
tree | 1ff9dc45adf95bd00ed943e5732cd45c703b3a1e /modules | |
parent | eb6d07a070b018aa129327c85dd7ef5f9ed44150 (diff) | |
download | gnulib-81941926b6fc72b671e7eb5e98c5e4e55e85eb0e.tar.gz |
Rewritten inttypes module. New modules imaxabs, imaxdiv.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/inttypes | 30 | ||||
-rw-r--r-- | modules/stdint | 3 |
2 files changed, 25 insertions, 8 deletions
diff --git a/modules/inttypes b/modules/inttypes index ccbb484dbc..75c4e04e2f 100644 --- a/modules/inttypes +++ b/modules/inttypes @@ -1,21 +1,37 @@ Description: -A wrapper C99 <inttypes.h> header which will always include <stdint.h> -(possibly the *almost* C99 compliant GNULIB <stdint.h>) and prototypes for the -strtoimax & strtoumax functions. +An <inttypes.h> that nearly conforms to C99. Files: -lib/inttypes.h -m4/include_next.m4 +lib/inttypes_.h m4/absolute-header.m4 -m4/_inttypes_h.m4 +m4/inttypes-pri.m4 +m4/inttypes.m4 Depends-on: +stdint configure.ac: gl_INTTYPES_H Makefile.am: -EXTRA_DIST += inttypes.h +BUILT_SOURCES += $(INTTYPES_H) +EXTRA_DIST += inttypes_.h + +# We need the following in order to create <inttypes.h> when the system +# doesn't have one that works with the given compiler. +inttypes.h: inttypes_.h + sed -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ + -e 's/@''ABSOLUTE_INTTYPES_H''@/$(ABSOLUTE_INTTYPES_H)/g' \ + -e 's/@''PRI_MACROS_BROKEN''@/$(PRI_MACROS_BROKEN)/g' \ + -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ + -e 's/@''PRIPTR_PREFIX''@/$(PRIPTR_PREFIX)/g' \ + -e 's/@''HAVE_DECL_IMAXABS''@/$(HAVE_DECL_IMAXABS)/g' \ + -e 's/@''HAVE_DECL_IMAXDIV''@/$(HAVE_DECL_IMAXDIV)/g' \ + -e 's/@''HAVE_DECL_STRTOIMAX''@/$(HAVE_DECL_STRTOIMAX)/g' \ + -e 's/@''HAVE_DECL_STRTOUMAX''@/$(HAVE_DECL_STRTOUMAX)/g' \ + < $(srcdir)/inttypes_.h > $@-t + mv $@-t $@ +MOSTLYCLEANFILES += inttypes.h inttypes.h-t Include: #include <inttypes.h> diff --git a/modules/stdint b/modules/stdint index f8dc06eb16..657953b84b 100644 --- a/modules/stdint +++ b/modules/stdint @@ -26,9 +26,10 @@ EXTRA_DIST += stdint_.h stdint.h: stdint_.h sed -e 's/@''HAVE_WCHAR_H''@/$(HAVE_WCHAR_H)/g' \ -e 's/@''HAVE_STDINT_H''@/$(HAVE_STDINT_H)/g' \ - -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's|@''ABSOLUTE_STDINT_H''@|$(ABSOLUTE_STDINT_H)|g' \ + -e 's/@''HAVE_SYS_TYPES_H''@/$(HAVE_SYS_TYPES_H)/g' \ -e 's/@''HAVE_INTTYPES_H''@/$(HAVE_INTTYPES_H)/g' \ + -e 's|@''ABSOLUTE_INTTYPES_H''@|$(ABSOLUTE_INTTYPES_H)|g' \ -e 's/@''HAVE_SYS_INTTYPES_H''@/$(HAVE_SYS_INTTYPES_H)/g' \ -e 's/@''HAVE_SYS_BITYPES_H''@/$(HAVE_SYS_BITYPES_H)/g' \ -e 's/@''HAVE_LONG_LONG_INT''@/$(HAVE_LONG_LONG_INT)/g' \ |