On Sun, Feb 20, 2011 at 3:01 AM, Jonathan Nieder <jrnieder@xxxxxxxxx> wrote: > Ævar Arnfjörð Bjarmason wrote: >> +#define N_(s) (s) > > Might be nice to make this an inline function, for type safety. > >> +#define _(s) (s) > > This one can't be a function, though, since it needs to transform > literals to literals. > ... > -#define N_(s) (s) > -#define _(s) (s) > + > +static inline const char *_(const char *msgid) > +{ > + return msgid; > +} > + > +/* Mark msgid for translation but do not translate it. */ > +#define N_(msgid) (msgid) Isn't this the opposite of what you suggested above? -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html