changeset 7208:783f359a4ea2

Rewritten inttypes module.
author Bruno Haible <bruno@clisp.org>
date Mon, 28 Aug 2006 12:55:18 +0000
parents a1deb716fd26
children b528c3e6739e
files lib/inttypes.h m4/_inttypes_h.m4
diffstat 2 files changed, 0 insertions(+), 64 deletions(-) [+]
line wrap: on
line diff
--- a/lib/inttypes.h	Mon Aug 28 12:54:47 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,48 +0,0 @@
-/* Copyright (C) 2006 Free Software Foundation, Inc.
-   Written by Derek Price & Paul Eggert.
-   This file is part of gnulib.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU Lesser General Public License as published by
-   the Free Software Foundation; either version 2.1, or (at your option)
-   any later version.
-
-   This program is distributed in the hope that it will be useful,
-   but WITHOUT ANY WARRANTY; without even the implied warranty of
-   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-   GNU General Public License for more details.
-
-   You should have received a copy of the GNU Lesser General Public License
-   along with this program; if not, write to the Free Software Foundation,
-   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
-
-#ifndef INTTYPES_H
-#define INTTYPES_H
-
-/*
- * A wrapper for the ISO C 99 <inttypes.h>.
- * <http://www.opengroup.org/susv3xbd/inttypes.h.html>
- *
- * Currently, if the system <inttypes.h> is missing or not C99 compliant, then
- * this header may only provide the required <stdint.h> (which may be the
- * *almost* C99 compliant one from GNULIB) and prototypes for the strtoimax and
- * strtoumax functions.
- */
-
-#if HAVE_INTTYPES_H
-# if HAVE_INCLUDE_NEXT
-#  include_next <inttypes.h>
-# else
-#  include ABSOLUTE_INTTYPES_H
-# endif
-#endif
-#include <stdint.h>
-
-#if !HAVE_DECL_STRTOIMAX
-intmax_t strtoimax (const char *, char **, int);
-#endif
-#if !HAVE_DECL_STRTOUMAX
-uintmax_t strtoumax (const char *, char **, int);
-#endif
-
-#endif /* INTTYPES_H */
--- a/m4/_inttypes_h.m4	Mon Aug 28 12:54:47 2006 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-# _inttypes_h.m4 serial 5
-dnl Copyright (C) 2006 Free Software Foundation, Inc.
-dnl This file is free software; the Free Software Foundation
-dnl gives unlimited permission to copy and/or distribute it,
-dnl with or without modifications, as long as this notice is preserved.
-
-dnl From Derek Price.
-
-AC_DEFUN([gl_INTTYPES_H],
-[AC_REQUIRE([gl_INCLUDE_NEXT])dnl
-if test $gl_cv_have_include_next = no; then
-  gl_ABSOLUTE_HEADER([inttypes.h])
-fi
-AC_CHECK_DECLS_ONCE([strtoimax])dnl
-AC_CHECK_DECLS_ONCE([strtoumax])dnl
-])