]> 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:53:18 +0000 (08:53 +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 bce2c247d9ec3041475dd0d53936cc1a17665394..150153626cd2163c8a0210b7f6d10c426a5fc583 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 9f4bf8d4542e1b637b4f9f12be790e197bb57a68..a5e82fb7bc7b11e89dd221623cf12d8999717b99 100644 (file)
@@ -1,6 +1,6 @@
 /* xalloc.h -- malloc with out-of-memory checking
 
-   Copyright (C) 1990-2000, 2003-2004, 2006-2022 Free Software Foundation, Inc.
+   Copyright (C) 1990-2000, 2003-2004, 2006-2023 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -48,7 +48,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 */