This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFA: start of i18n


Cool. The main.c part is approved.
And the rest.  Just suggest moving:

 > +#ifdef HAVE_LOCALE_H
 > +# include <locale.h>
 > +#endif
 > +
 > +#ifdef ENABLE_NLS
 > +# include <libintl.h>
 > +# define _(String) gettext (String)
 > +# ifdef gettext_noop
 > +#  define N_(String) gettext_noop (String)
 > +# else
 > +#  define N_(String) (String)
 > +# endif
 > +#else
 > +# define gettext(Msgid) (Msgid)
 > +# define dgettext(Domainname, Msgid) (Msgid)
 > +# define dcgettext(Domainname, Msgid, Category) (Msgid)
 > +# define textdomain(Domainname) while (0) /* nothing */
 > +# define bindtextdomain(Domainname, Dirname) while (0) /* nothing */
 > +# define _(String) (String)
 > +# define N_(String) (String)
 > +#endif
 > +
to "gdb_locale.h" and then including that.

Does src/Makefile.in:all-gdb need any dependency tweaks?

_("dontforgettheaeroguardandavagoodweekend")
Andrew



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]