2 * Copyright © 2023 Nick Bowler
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 3 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <https://www.gnu.org/licenses/>.
18 #ifndef CDECL99_VERSION_H_
19 #define CDECL99_VERSION_H_
21 #define version_blurb(s, copyright) \
23 copyright "2023 Nick Bowler\n" \
24 "License GPLv3+: GNU GPL version 3 or any later version.\n" \
25 "This is free software: you are free to change and redistribute it.\n" \
26 "There is NO WARRANTY, to the extent permitted by law." \
28 #if ENABLE_NLS && !VERSION_NO_COPYRIGHT_SYMBOL
29 #include <localcharset.h>
32 #define do_print_version(s) do { \
33 printf(version_blurb(s, "Copyright %s ")"\n", \
34 copyright_symbol(locale_charset())); \
37 #define do_print_version(s) do { \
38 puts(version_blurb(s, "Copyright (C) ")); \