From: Paul Eggert Date: Fri, 9 Jun 2023 18:13:19 +0000 (-0700) Subject: xalloc-die: omit /*extern*/ X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=ef725a617c0f2ff00a69f6c9e2e973f41108720e;p=gnulib.git xalloc-die: omit /*extern*/ * lib/xalloc.h (xalloc_die): Omit leading "/*extern*/". It complicates syntax checking; see: https://lists.gnu.org/r/bug-gnulib/2023-06/msg00062.html Plus, it’s inconsistent style: the other function declarations in xalloc.h don’t use ‘extern’. (I’m not a fan of using ‘extern’ when it’s just noise, as is the case here.) --- diff --git a/ChangeLog b/ChangeLog index e582dc1f17..cb7859abd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2023-06-09 Paul Eggert + + xalloc-die: omit /*extern*/ + * lib/xalloc.h (xalloc_die): Omit leading "/*extern*/". + It complicates syntax checking; see: + https://lists.gnu.org/r/bug-gnulib/2023-06/msg00062.html + Plus, it’s inconsistent style: the other function declarations in + xalloc.h don’t use ‘extern’. (I’m not a fan of using ‘extern’ when + it’s just noise, as is the case here.) + 2023-06-06 Jim Meyering maint.mk: regenerate regex to reflect new functions in xalloc.h diff --git a/lib/xalloc.h b/lib/xalloc.h index f373c2fe59..8d6757f28a 100644 --- a/lib/xalloc.h +++ b/lib/xalloc.h @@ -46,7 +46,7 @@ extern "C" { or by using gnulib's xalloc-die module. This is the function to call when one wants the program to die because of a memory allocation failure. */ -/*extern*/ _Noreturn void xalloc_die (void); +_Noreturn void xalloc_die (void); #endif /* GNULIB_XALLOC_DIE */