* autogen.sh (GNULIB_MODULES_RUNTIME_FOR_SRC, GNULIB_MODULES_TOOLS_FOR_SRC): Add noreturn.
* gettext-runtime/src/envsubst.c: Include noreturn.h.
(usage): Use _GL_NORETURN_FUNC.
* gettext-runtime/src/gettext.c: Likewise.
* gettext-runtime/src/ngettext.c: Likewise.
* gettext-tools/src/hostname.c: Likewise.
* gettext-tools/src/msgattrib.c: Likewise.
* gettext-tools/src/msgcat.c: Likewise.
* gettext-tools/src/msgcmp.c: Likewise.
* gettext-tools/src/msgcomm.c: Likewise.
* gettext-tools/src/msgconv.c: Likewise.
* gettext-tools/src/msgen.c: Likewise.
* gettext-tools/src/msgexec.c: Likewise.
* gettext-tools/src/msgfilter.c: Likewise.
* gettext-tools/src/msgfmt.c: Likewise.
* gettext-tools/src/msginit.c: Likewise.
* gettext-tools/src/msgmerge.c: Likewise.
* gettext-tools/src/msgunfmt.c: Likewise.
* gettext-tools/src/msguniq.c: Likewise.
* gettext-tools/src/recode-sr-latin.c: Likewise.
* gettext-tools/src/urlget.c: Likewise.
* gettext-tools/src/xgettext.c: Likewise.
* gettext-tools/src/msggrep.c: Include noreturn.h.
(no_pass, usage): Use _GL_NORETURN_FUNC.
* gettext-tools/src/msgl-iconv.c: Include noreturn.h.
(conversion_error): Use _GL_NORETURN_FUNC.
* gettext-tools/tests/tstgettext.c: Include noreturn.h.
(usage): Use _GL_NORETURN_FUNC.
* gettext-tools/tests/tstngettext.c: Likewise.
gettext-h
havelib
memmove
+ noreturn
progname
propername
relocatable-prog
memset
minmax
mkdir
+ noreturn
obstack
open
opendir
#include <unistd.h>
#include <locale.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void print_variables (const char *string);
static void note_variables (const char *string);
static void subst_from_stdin (void);
#include <string.h>
#include <locale.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
main (int argc, char *argv[])
#include <locale.h>
#include <errno.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
main (int argc, char *argv[])
/* Include this after <sys/socket.h>, to avoid a syntax error on BeOS. */
#include <stdbool.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "error-progname.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void print_hostname (void);
int
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static msgdomain_list_ty *process_msgdomain_list (msgdomain_list_ty *mdlp,
msgdomain_list_ty *only_mdlp,
msgdomain_list_ty *ignore_mdlp);
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "str-list.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
#include <stdlib.h>
#include <locale.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void compare (const char *fn1, const char *fn2,
catalog_input_format_ty input_syntax);
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "str-list.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ > 4) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
#include <sys/types.h>
#include <unistd.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void process_msgdomain_list (const msgdomain_list_ty *mdlp);
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void generic_filter (const char *str, size_t len, char **resultp, size_t *lengthp);
static msgdomain_list_ty *process_msgdomain_list (msgdomain_list_ty *mdlp);
#include <sys/stat.h>
#include <assert.h>
+#include "noreturn.h"
#include "closeout.h"
#include "str-list.h"
#include "dir-list.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static const char *add_mo_suffix (const char *);
static struct msg_domain *new_domain (const char *name, const char *file_name);
static bool is_nonobsolete (const message_ty *mp);
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void no_pass (int opt)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void no_pass (int opt);
+_GL_NORETURN_FUNC static void usage (int status);
static msgdomain_list_ty *process_msgdomain_list (msgdomain_list_ty *mdlp);
/* Get BINDIR. */
#include "configmake.h"
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "error-progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static const char *find_pot (void);
static const char *catalogname_for_locale (const char *locale);
static const char *language_of_locale (const char *locale);
/* Message list charset and locale charset handling.
- Copyright (C) 2001-2003, 2005-2009, 2019 Free Software Foundation, Inc.
+ Copyright (C) 2001-2003, 2005-2009, 2019-2020 Free Software Foundation, Inc.
Written by Bruno Haible <haible@clisp.cons.org>, 2001.
This program is free software: you can redistribute it and/or modify
# include <iconv.h>
#endif
+#include "noreturn.h"
#include "progname.h"
#include "basename.h"
#include "message.h"
#if HAVE_ICONV
-static void conversion_error (const struct conversion_context* context)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void conversion_error (const struct conversion_context* context);
static void
conversion_error (const struct conversion_context* context)
{
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "error.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void compendium (const char *filename);
static void msgdomain_list_stablesort_by_obsolete (msgdomain_list_ty *mdlp);
static msgdomain_list_ty *merge (const char *fn1, const char *fn2,
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "error-progname.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void read_one_file (message_list_ty *mlp, const char *filename);
#include <textstyle.h>
+#include "noreturn.h"
#include "closeout.h"
#include "dir-list.h"
#include "str-list.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
#include <iconv.h>
#endif
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void process (FILE *stream);
int
#include <locale.h>
#include <unistd.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "error-progname.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void fetch (const char *url, const char *file);
#include <textstyle.h>
+#include "noreturn.h"
#include "rc-str-list.h"
#include "xg-encoding.h"
#include "xg-arglist-context.h"
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ > 4) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
static void read_exclusion_file (char *file_name);
static void extract_from_file (const char *file_name, extractor_ty extractor,
msgdomain_list_ty *mdlp);
#include <string.h>
#include <locale.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int status);
int
main (int argc, char *argv[])
#include <locale.h>
#include <errno.h>
+#include "noreturn.h"
#include "closeout.h"
#include "error.h"
#include "progname.h"
};
/* Forward declaration of local functions. */
-static void usage (int __status)
-#if defined __GNUC__ && ((__GNUC__ == 2 && __GNUC_MINOR__ >= 5) || __GNUC__ > 2)
- __attribute__ ((noreturn))
-#endif
-;
+_GL_NORETURN_FUNC static void usage (int __status);
int
main (int argc, char *argv[])