]> Savannah Git Hosting - gnulib.git/commitdiff
xalloc-die: omit /*extern*/
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Jun 2023 18:13:19 +0000 (11:13 -0700)
committerBruno Haible <bruno@clisp.org>
Sun, 18 Jun 2023 06:40:56 +0000 (08:40 +0200)
* 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.)

ChangeLog
lib/xalloc.h

index e582dc1f178ec87b448aa39e8fa0f4a148852301..cb7859abd5f3427b207f481204ffb4172388fd67 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2023-06-09  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <meyering@meta.com>
 
        maint.mk: regenerate regex to reflect new functions in xalloc.h
index f373c2fe59959fbeda4a04a6297d59d735967d0b..8d6757f28a27b3de2eeff162f3856ee077bc73af 100644 (file)
@@ -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 */