* argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
	(CFLAGS-argp-fmtstream.c): Likewise.
	* argp/argp.h: Remove a number of __THROW.
This commit is contained in:
Ulrich Drepper 2003-08-30 18:30:23 +00:00
parent b9cc1576e9
commit 2b29b09e66
3 changed files with 18 additions and 11 deletions

View File

@ -1,5 +1,9 @@
2003-08-30 Ulrich Drepper <drepper@redhat.com> 2003-08-30 Ulrich Drepper <drepper@redhat.com>
* argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
(CFLAGS-argp-fmtstream.c): Likewise.
* argp/argp.h: Remove a number of __THROW.
* misc/sys/syslog.h (vsyslog): Remove __THROW. * misc/sys/syslog.h (vsyslog): Remove __THROW.
* misc/Makefile (CFLAGS-getpass.c): Add -fexceptions. * misc/Makefile (CFLAGS-getpass.c): Add -fexceptions.

View File

@ -1,4 +1,4 @@
# Copyright (C) 1997, 2002 Free Software Foundation, Inc. # Copyright (C) 1997, 2002, 2003 Free Software Foundation, Inc.
# This file is part of the GNU C Library. # This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or # The GNU C Library is free software; you can redistribute it and/or
@ -28,4 +28,7 @@ routines = $(addprefix argp-, ba fmtstream fs-xinl help parse pv \
tests = argp-test tst-argp1 tests = argp-test tst-argp1
CFLAGS-argp-help.c = -fexceptions
CFLAGS-argp-fmtstream.c = -fexceptions
include ../Rules include ../Rules

View File

@ -448,10 +448,10 @@ extern error_t argp_err_exit_status;
ARGP_HELP_*. */ ARGP_HELP_*. */
extern void argp_help (__const struct argp *__restrict __argp, extern void argp_help (__const struct argp *__restrict __argp,
FILE *__restrict __stream, FILE *__restrict __stream,
unsigned __flags, char *__restrict __name) __THROW; unsigned __flags, char *__restrict __name);
extern void __argp_help (__const struct argp *__restrict __argp, extern void __argp_help (__const struct argp *__restrict __argp,
FILE *__restrict __stream, unsigned __flags, FILE *__restrict __stream, unsigned __flags,
char *__name) __THROW; char *__name);
/* The following routines are intended to be called from within an argp /* The following routines are intended to be called from within an argp
parsing routine (thus taking an argp_state structure as the first parsing routine (thus taking an argp_state structure as the first
@ -465,23 +465,23 @@ extern void __argp_help (__const struct argp *__restrict __argp,
from the set ARGP_HELP_*. */ from the set ARGP_HELP_*. */
extern void argp_state_help (__const struct argp_state *__restrict __state, extern void argp_state_help (__const struct argp_state *__restrict __state,
FILE *__restrict __stream, FILE *__restrict __stream,
unsigned int __flags) __THROW; unsigned int __flags);
extern void __argp_state_help (__const struct argp_state *__restrict __state, extern void __argp_state_help (__const struct argp_state *__restrict __state,
FILE *__restrict __stream, FILE *__restrict __stream,
unsigned int __flags) __THROW; unsigned int __flags);
/* Possibly output the standard usage message for ARGP to stderr and exit. */ /* Possibly output the standard usage message for ARGP to stderr and exit. */
extern void argp_usage (__const struct argp_state *__state) __THROW; extern void argp_usage (__const struct argp_state *__state);
extern void __argp_usage (__const struct argp_state *__state) __THROW; extern void __argp_usage (__const struct argp_state *__state);
/* If appropriate, print the printf string FMT and following args, preceded /* If appropriate, print the printf string FMT and following args, preceded
by the program name and `:', to stderr, and followed by a `Try ... --help' by the program name and `:', to stderr, and followed by a `Try ... --help'
message, then exit (1). */ message, then exit (1). */
extern void argp_error (__const struct argp_state *__restrict __state, extern void argp_error (__const struct argp_state *__restrict __state,
__const char *__restrict __fmt, ...) __THROW __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3))); __attribute__ ((__format__ (__printf__, 2, 3)));
extern void __argp_error (__const struct argp_state *__restrict __state, extern void __argp_error (__const struct argp_state *__restrict __state,
__const char *__restrict __fmt, ...) __THROW __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 2, 3))); __attribute__ ((__format__ (__printf__, 2, 3)));
/* Similar to the standard gnu error-reporting function error(), but will /* Similar to the standard gnu error-reporting function error(), but will
@ -494,11 +494,11 @@ extern void __argp_error (__const struct argp_state *__restrict __state,
parsing but don't reflect a (syntactic) problem with the input. */ parsing but don't reflect a (syntactic) problem with the input. */
extern void argp_failure (__const struct argp_state *__restrict __state, extern void argp_failure (__const struct argp_state *__restrict __state,
int __status, int __errnum, int __status, int __errnum,
__const char *__restrict __fmt, ...) __THROW __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 4, 5))); __attribute__ ((__format__ (__printf__, 4, 5)));
extern void __argp_failure (__const struct argp_state *__restrict __state, extern void __argp_failure (__const struct argp_state *__restrict __state,
int __status, int __errnum, int __status, int __errnum,
__const char *__restrict __fmt, ...) __THROW __const char *__restrict __fmt, ...)
__attribute__ ((__format__ (__printf__, 4, 5))); __attribute__ ((__format__ (__printf__, 4, 5)));
/* Returns true if the option OPT is a valid short option. */ /* Returns true if the option OPT is a valid short option. */