diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-03-26 12:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 12:53:53 +0100 |
| commit | 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch) | |
| tree | 3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/gettext.h | |
| parent | 9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff) | |
| download | monitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz | |
* Sync with the 202601-stable Gnulib code (4a3650d887)
* Ignore more deps stuff in gnulib
* Remove autogenerated gnulib files
* Ignore more gnulib generated headers
Diffstat (limited to 'gl/gettext.h')
| -rw-r--r-- | gl/gettext.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gl/gettext.h b/gl/gettext.h index 0650abc9..0291cf09 100644 --- a/gl/gettext.h +++ b/gl/gettext.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Convenience header for conditional use of GNU <libintl.h>. | 1 | /* Convenience header for conditional use of GNU <libintl.h>. |
| 2 | Copyright (C) 1995-2025 Free Software Foundation, Inc. | 2 | Copyright (C) 1995-2026 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is free software: you can redistribute it and/or modify | 4 | This file is free software: you can redistribute it and/or modify |
| 5 | it under the terms of the GNU Lesser General Public License as | 5 | it under the terms of the GNU Lesser General Public License as |
| @@ -298,12 +298,11 @@ dcpgettext_expr (const char *domain, | |||
| 298 | if (msg_ctxt_id != NULL) | 298 | if (msg_ctxt_id != NULL) |
| 299 | #endif | 299 | #endif |
| 300 | { | 300 | { |
| 301 | int found_translation; | ||
| 302 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); | 301 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); |
| 303 | msg_ctxt_id[msgctxt_len - 1] = '\004'; | 302 | msg_ctxt_id[msgctxt_len - 1] = '\004'; |
| 304 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); | 303 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
| 305 | translation = dcgettext (domain, msg_ctxt_id, category); | 304 | translation = dcgettext (domain, msg_ctxt_id, category); |
| 306 | found_translation = (translation != msg_ctxt_id); | 305 | int found_translation = (translation != msg_ctxt_id); |
| 307 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS | 306 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
| 308 | if (msg_ctxt_id != buf) | 307 | if (msg_ctxt_id != buf) |
| 309 | free (msg_ctxt_id); | 308 | free (msg_ctxt_id); |
| @@ -346,12 +345,11 @@ dcnpgettext_expr (const char *domain, | |||
| 346 | if (msg_ctxt_id != NULL) | 345 | if (msg_ctxt_id != NULL) |
| 347 | #endif | 346 | #endif |
| 348 | { | 347 | { |
| 349 | int found_translation; | ||
| 350 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); | 348 | memcpy (msg_ctxt_id, msgctxt, msgctxt_len - 1); |
| 351 | msg_ctxt_id[msgctxt_len - 1] = '\004'; | 349 | msg_ctxt_id[msgctxt_len - 1] = '\004'; |
| 352 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); | 350 | memcpy (msg_ctxt_id + msgctxt_len, msgid, msgid_len); |
| 353 | translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); | 351 | translation = dcngettext (domain, msg_ctxt_id, msgid_plural, n, category); |
| 354 | found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); | 352 | int found_translation = !(translation == msg_ctxt_id || translation == msgid_plural); |
| 355 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS | 353 | #if !_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS |
| 356 | if (msg_ctxt_id != buf) | 354 | if (msg_ctxt_id != buf) |
| 357 | free (msg_ctxt_id); | 355 | free (msg_ctxt_id); |
