Remove "fatal" module.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 18:40:30 +0000 (18:40 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 3 Aug 2004 18:40:30 +0000 (18:40 +0000)
ChangeLog
MODULES.html.sh
lib/ChangeLog
lib/fatal.c [deleted file]
lib/fatal.h [deleted file]
m4/ChangeLog
m4/fatal.m4 [deleted file]
modules/fatal [deleted file]

index 480cd1a418fb8835b09374bd9885a64dc7be94c5..f0d5a037cc19849d8e77eee68607dd17700d61a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * modules/fatal: Remove, as the "fatal" module wasn't used or working.
+       * MODULES.html.sh (func_all_modules): Remove fatal.
+
 2004-07-19  Bruno Haible  <bruno@clisp.org>
 
        * MODULES.html.sh (func_all_modules): Add dummy.
index cf222dabf1f02bb93fbcc8542851ffbca609e404..bd1e585182268ca96198ba3b67c42eaf7e485b4d 100755 (executable)
@@ -1909,7 +1909,6 @@ func_all_modules ()
   func_module c-stack
   func_module error
   func_module extensions
-  func_module fatal
   func_module getdomainname
   func_module xgetdomainname
   func_module getloadavg
index 11b2daf499f55be8178a36cff8c25f884ef20d0e..9af9b1fc24942366c97c214d6aa2cdbb564b8e96 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fatal.c, fatal.h: Remove as the "fatal" module wasn't used or working.
+
 2004-07-16  Simon Josefsson  <jas@extundo.com>
 
        * dummy.c: New file.
diff --git a/lib/fatal.c b/lib/fatal.c
deleted file mode 100644 (file)
index 79e8a34..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/* Fatal exits for noninteractive utilities
-
-   Copyright (C) 2001, 2003 Free Software Foundation, Inc.
-
-   This program is free software; you can redistribute it and/or modify
-   it under the terms of the GNU General Public License as published by
-   the Free Software Foundation; either version 2, 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 General Public License along
-   with this program; if not, write to the Free Software Foundation,
-   Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
-
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
-
-#include "fatal.h"
-
-#include "exit.h"
-#include <stdarg.h>
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-
-#ifdef _LIBC
-# define program_name program_invocation_name
-#else /* not _LIBC */
-/* The calling program should define program_name and set it to the
-   name of the executing program.  */
-extern char *program_name;
-#endif
-
-#include "unlocked-io.h"
-
-/* Like error, but always exit with EXIT_FAILURE.  */
-
-void
-fatal (int errnum, const char *message, ...)
-{
-  va_list args;
-
-  if (error_print_progname)
-    (*error_print_progname) ();
-  else
-    {
-      fflush (stdout);
-      fprintf (stderr, "%s: ", program_name);
-    }
-
-  va_start (args, message);
-  error (EXIT_FAILURE, errnum, message, args);
-
-  /* The following code isn't reachable, but pacifies some compilers.  */
-  va_end (args);
-  abort ();
-}
diff --git a/lib/fatal.h b/lib/fatal.h
deleted file mode 100644 (file)
index e12f885..0000000
+++ /dev/null
@@ -1,68 +0,0 @@
-#include "error.h"
-
-/* FIXME: this is all from ansidecl.  better to simply swipe
-   that file from egcs/include and include it from here.  */
-
-/* Using MACRO(x,y) in cpp #if conditionals does not work with some
-   older preprocessors.  Thus we can't define something like this:
-
-#define HAVE_GCC_VERSION(MAJOR, MINOR) \
-  (__GNUC__ > (MAJOR) || (__GNUC__ == (MAJOR) && __GNUC_MINOR__ >= (MINOR)))
-
-and then test "#if HAVE_GCC_VERSION(2,7)".
-
-So instead we use the macro below and test it against specific values.  */
-
-/* This macro simplifies testing whether we are using gcc, and if it
-   is of a particular minimum version. (Both major & minor numbers are
-   significant.)  This macro will evaluate to 0 if we are not using
-   gcc at all.  */
-#ifndef GCC_VERSION
-# define GCC_VERSION (__GNUC__ * 1000 + __GNUC_MINOR__)
-#endif /* GCC_VERSION */
-
-/* Define macros for some gcc attributes.  This permits us to use the
-   macros freely, and know that they will come into play for the
-   version of gcc in which they are supported.  */
-
-#if (GCC_VERSION < 2007)
-# define __attribute__(x)
-#endif
-
-/* Attribute __malloc__ on functions was valid as of gcc 2.96. */
-#ifndef ATTRIBUTE_MALLOC
-# if (GCC_VERSION >= 2096)
-#  define ATTRIBUTE_MALLOC __attribute__ ((__malloc__))
-# else
-#  define ATTRIBUTE_MALLOC
-# endif /* GNUC >= 2.96 */
-#endif /* ATTRIBUTE_MALLOC */
-
-/* Attributes on labels were valid as of gcc 2.93. */
-#ifndef ATTRIBUTE_UNUSED_LABEL
-# if (GCC_VERSION >= 2093)
-#  define ATTRIBUTE_UNUSED_LABEL ATTRIBUTE_UNUSED
-# else
-#  define ATTRIBUTE_UNUSED_LABEL
-# endif /* GNUC >= 2.93 */
-#endif /* ATTRIBUTE_UNUSED_LABEL */
-
-#ifndef ATTRIBUTE_UNUSED
-# define ATTRIBUTE_UNUSED __attribute__ ((__unused__))
-#endif /* ATTRIBUTE_UNUSED */
-
-#ifndef ATTRIBUTE_NORETURN
-# define ATTRIBUTE_NORETURN __attribute__ ((__noreturn__))
-#endif /* ATTRIBUTE_NORETURN */
-
-#ifndef ATTRIBUTE_PRINTF
-# define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n)))
-# define ATTRIBUTE_PRINTF_1 ATTRIBUTE_PRINTF(1, 2)
-# define ATTRIBUTE_PRINTF_2 ATTRIBUTE_PRINTF(2, 3)
-# define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)
-# define ATTRIBUTE_PRINTF_4 ATTRIBUTE_PRINTF(4, 5)
-# define ATTRIBUTE_PRINTF_5 ATTRIBUTE_PRINTF(5, 6)
-#endif /* ATTRIBUTE_PRINTF */
-
-extern void fatal (int errnum, const char *format, ...)
-     ATTRIBUTE_NORETURN ATTRIBUTE_PRINTF_2;
index 999c48131464f272df90edafcf384a03493fd8e4..c7d51febc7d4428bb8ce31d67d58160e6ade7678 100644 (file)
@@ -1,3 +1,7 @@
+2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * fatal.m4: Remove, as the "fatal" module wasn't used or working.
+
 2004-07-13  Robert Millan  <robertmh@gnu.org>
 
        * host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
diff --git a/m4/fatal.m4 b/m4/fatal.m4
deleted file mode 100644 (file)
index eea9b1c..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-# fatal.m4 serial 3
-dnl Copyright (C) 2002, 2003 Free Software Foundation, Inc.
-dnl This file is free software, distributed under the terms of the GNU
-dnl General Public License.  As a special exception to the GNU General
-dnl Public License, this file may be distributed as part of a program
-dnl that contains a configuration script generated by Autoconf, under
-dnl the same distribution terms as the rest of that program.
-
-AC_DEFUN([gl_FATAL],
-[
-  dnl No prerequisites of lib/fatal.c.
-  :
-])
diff --git a/modules/fatal b/modules/fatal
deleted file mode 100644 (file)
index 45090ed..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-Description:
-Error reporting for fatal errors.
-
-Files:
-lib/fatal.h
-lib/fatal.c
-m4/fatal.m4
-
-Depends-on:
-error
-unlocked-io
-exit
-
-configure.ac:
-gl_FATAL
-
-Makefile.am:
-lib_SOURCES += fatal.h fatal.c
-
-Include:
-"fatal.h"
-
-Maintainer:
-