]> 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)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 9 Jun 2023 18:13:19 +0000 (11:13 -0700)
* 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 0c7c2fa967a68bb6f4aba4b501b3e38d2aced27c..16853a30abf349303235dafcd01ccb54779c1fe1 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-09  Bruno Haible  <bruno@clisp.org>
 
        javaversion: Update comments.
index 0a951e1d590ed31271eb19f94cbaca754741a7c7..fb44f420db91a89521b5438f9d651c826e5e3004 100644 (file)
@@ -50,7 +50,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 */