From b1ed71169e58841f7a2f401260b2868b65ef64c2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 28 Aug 2006 12:55:18 +0000 Subject: [PATCH] Rewritten inttypes module. --- lib/inttypes.h | 48 ----------------------------------------------- m4/_inttypes_h.m4 | 16 ---------------- 2 files changed, 64 deletions(-) delete mode 100644 lib/inttypes.h delete mode 100644 m4/_inttypes_h.m4 diff --git a/lib/inttypes.h b/lib/inttypes.h deleted file mode 100644 index 2b2f044526..0000000000 --- a/lib/inttypes.h +++ /dev/null @@ -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 . - * - * - * Currently, if the system is missing or not C99 compliant, then - * this header may only provide the required (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 -# else -# include ABSOLUTE_INTTYPES_H -# endif -#endif -#include - -#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 */ diff --git a/m4/_inttypes_h.m4 b/m4/_inttypes_h.m4 deleted file mode 100644 index 241364d6da..0000000000 --- a/m4/_inttypes_h.m4 +++ /dev/null @@ -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 -]) -- 2.30.2