summaryrefslogtreecommitdiffstats
path: root/gl/regex_internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/regex_internal.h')
-rw-r--r--gl/regex_internal.h26
1 files changed, 6 insertions, 20 deletions
diff --git a/gl/regex_internal.h b/gl/regex_internal.h
index 6165cb17..11b745ef 100644
--- a/gl/regex_internal.h
+++ b/gl/regex_internal.h
@@ -1,5 +1,5 @@
1/* Extended regular expression matching and search library. 1/* Extended regular expression matching and search library.
2 Copyright (C) 2002-2024 Free Software Foundation, Inc. 2 Copyright (C) 2002-2026 Free Software Foundation, Inc.
3 This file is part of the GNU C Library. 3 This file is part of the GNU C Library.
4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. 4 Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>.
5 5
@@ -98,22 +98,14 @@
98#endif 98#endif
99 99
100/* This is for other GNU distributions with internationalized messages. */ 100/* This is for other GNU distributions with internationalized messages. */
101#if (HAVE_LIBINTL_H && ENABLE_NLS) || defined _LIBC 101#ifdef _LIBC
102# include <libintl.h> 102# include <libintl.h>
103# ifdef _LIBC
104# undef gettext
105# define gettext(msgid) \
106 __dcgettext (_libc_intl_domainname, msgid, LC_MESSAGES)
107# endif
108#else
109# undef gettext 103# undef gettext
110# define gettext(msgid) (msgid) 104# define gettext(msgid) \
111#endif 105 __dcgettext (_libc_intl_domainname, msgid, LC_MESSAGES)
112
113#ifndef gettext_noop
114/* This define is so xgettext can find the internationalizable
115 strings. */
116# define gettext_noop(String) String 106# define gettext_noop(String) String
107#else
108# include "gettext.h"
117#endif 109#endif
118 110
119/* Number of ASCII characters. */ 111/* Number of ASCII characters. */
@@ -436,12 +428,6 @@ typedef struct re_dfa_t re_dfa_t;
436#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx)) 428#define re_string_skip_bytes(pstr,idx) ((pstr)->cur_idx += (idx))
437#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx)) 429#define re_string_set_index(pstr,idx) ((pstr)->cur_idx = (idx))
438 430
439#ifdef _LIBC
440# define MALLOC_0_IS_NONNULL 1
441#elif !defined MALLOC_0_IS_NONNULL
442# define MALLOC_0_IS_NONNULL 0
443#endif
444
445#ifndef MAX 431#ifndef MAX
446# define MAX(a,b) ((a) < (b) ? (b) : (a)) 432# define MAX(a,b) ((a) < (b) ? (b) : (a))
447#endif 433#endif