]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Code perfectionism.
authorBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:27:46 +0000 (01:27 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 2 Jun 2023 23:27:46 +0000 (01:27 +0200)
* gettext-tools/src/msgfmt.c (SIZEOF): Remove unused macro.
* gettext-tools/src/read-desktop.c (SIZEOF): Likewise.
* gettext-tools/src/x-desktop.c (SIZEOF): Likewise.

gettext-tools/src/msgfmt.c
gettext-tools/src/read-desktop.c
gettext-tools/src/x-desktop.c

index c0ea5a23017a4fcc78b8f62944fc36652508d4f1..c5a880f427e1232415e8ec13211e8371aea9437b 100644 (file)
@@ -1,6 +1,5 @@
 /* Converts Uniforum style .po files to binary .mo files
-   Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2014-2016, 2018-2022 Free Software
-   Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2007, 2009-2010, 2012, 2014-2016, 2018-2023 Free Software Foundation, Inc.
    Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, April 1995.
 
    This program is free software: you can redistribute it and/or modify
@@ -71,8 +70,6 @@
 
 #define _(str) gettext (str)
 
-#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
-
 /* Contains exit status for case in which no premature exit occurs.  */
 static int exit_status;
 
index 9ca6fdbd515b7d39d8400ea0bd3c1c537b0209d0..a39ed01720297cd7fef62ed51154320d3130a1b8 100644 (file)
@@ -1,6 +1,5 @@
 /* Reading Desktop Entry files.
-   Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2019 Free
-   Software Foundation, Inc.
+   Copyright (C) 1995-1998, 2000-2003, 2005-2006, 2008-2009, 2014-2019, 2023 Free Software Foundation, Inc.
    This file was written by Daiki Ueno <ueno@gnu.org>.
 
    This program is free software: you can redistribute it and/or modify
@@ -43,8 +42,6 @@
 
 #define _(str) gettext (str)
 
-#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
-
 /* The syntax of a Desktop Entry file is defined at
    https://standards.freedesktop.org/desktop-entry-spec/latest/index.html.  */
 
index 209da71cd21c215c0517ce9257f65edfe03c1da4..dc989d159859d37c9da7170cb11dbe320a32f2ae 100644 (file)
@@ -1,5 +1,5 @@
 /* xgettext Desktop Entry backend.
-   Copyright (C) 2014, 2018-2020 Free Software Foundation, Inc.
+   Copyright (C) 2014, 2018-2020, 2023 Free Software Foundation, Inc.
 
    This file was written by Daiki Ueno <ueno@gnu.org>, 2014.
 
@@ -44,8 +44,6 @@
 
 #define _(s) gettext(s)
 
-#define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
-
 /* ====================== Keyword set customization.  ====================== */
 
 /* The syntax of a Desktop Entry file is defined at