mirror of
https://https.git.savannah.gnu.org/git/findutils.git
synced 2026-01-26 15:39:06 +00:00
maint: Don't define the gettext-related macro N_ where it is not needed.
* lib/buildcmd.c: Don't define the macro N_(), since we don't use it. * lib/fdleak.c: Likewise. * lib/safe-atoi.c: Likewise. * lib/regextype.c: Likewise. * lib/listfile.c: Likewise. * locate/bigram.c: Likewise. * locate/code.c: Likewise. * locate/frcode.c: Likewise. * locate/word_io.c: Likewise. * find/fstype.c: Likewise. * find/parser.c: Likewise. * find/pred.c: Likewise. * find/exec.c: Likewise. * find/tree.c: Likewise. * find/util.c: Likewise. * find/print.c: Likewise. * find/ftsfind.c: Likewise.
This commit is contained in:
parent
36c63d385b
commit
317c00f610
@ -47,12 +47,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
/* Initialize exec->wd_for_exec.
|
||||
|
||||
@ -65,12 +65,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
static char *file_system_type_uncached (const struct stat *statp, const char *path);
|
||||
|
||||
|
||||
@ -68,12 +68,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
/* FTS_TIGHT_CYCLE_CHECK tries to work around Savannah bug #17877
|
||||
|
||||
@ -76,12 +76,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_ENDGRENT
|
||||
#define endgrent ()
|
||||
|
||||
@ -60,12 +60,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
#ifdef CLOSEDIR_VOID
|
||||
/* Fake a return value. */
|
||||
|
||||
@ -55,12 +55,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
#if defined STDC_HEADERS
|
||||
# define ISDIGIT(c) isdigit ((unsigned char)c)
|
||||
|
||||
@ -38,12 +38,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
@ -51,12 +51,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
struct debug_option_assoc
|
||||
|
||||
@ -49,12 +49,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
/* COMPAT: SYSV version defaults size (and has a max value of) to 470.
|
||||
We try to make it as large as possible. See bc_get_arg_max() below. */
|
||||
|
||||
@ -49,12 +49,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
/* In order to detect FD leaks, we take a snapshot of the open
|
||||
* file descriptors which are not FD_CLOEXEC when the program starts.
|
||||
|
||||
@ -72,12 +72,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
static bool print_name (register const char *p, FILE *stream, int literal_control_chars);
|
||||
|
||||
|
||||
@ -42,12 +42,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
struct tagRegexTypeMap
|
||||
|
||||
@ -36,12 +36,6 @@
|
||||
#else
|
||||
# define _(Text) Text
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
int
|
||||
|
||||
@ -60,12 +60,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop(String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
/* Return the length of the longest common prefix of strings S1 and S2. */
|
||||
|
||||
@ -74,12 +74,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* See locate.c for explanation as to why not use (String) */
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef ATTRIBUTE_NORETURN
|
||||
|
||||
@ -96,18 +96,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* We used to use (String) instead of just String, but apparently ISO C
|
||||
* doesn't allow this (at least, that's what HP said when someone reported
|
||||
* this as a compiler bug). This is HP case number 1205608192. See
|
||||
* also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11250 (which references
|
||||
* ANSI 3.5.7p14-15). The Intel icc compiler also rejects constructs
|
||||
* like: static const char buf[] = ("string");
|
||||
*/
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
/* Write out a 16-bit int, high byte first (network byte order).
|
||||
|
||||
@ -43,18 +43,6 @@
|
||||
#define textdomain(Domain)
|
||||
#define bindtextdomain(Package, Directory)
|
||||
#endif
|
||||
#ifdef gettext_noop
|
||||
# define N_(String) gettext_noop (String)
|
||||
#else
|
||||
/* We used to use (String) instead of just String, but apparently ISO C
|
||||
* doesn't allow this (at least, that's what HP said when someone reported
|
||||
* this as a compiler bug). This is HP case number 1205608192. See
|
||||
* also http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11250 (which references
|
||||
* ANSI 3.5.7p14-15). The Intel icc compiler also rejects constructs
|
||||
* like: static const char buf[] = ("string");
|
||||
*/
|
||||
# define N_(String) String
|
||||
#endif
|
||||
|
||||
|
||||
enum { WORDBYTES=4 };
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user