libgimp/gimpintl.h use G_STMT_START and G_STMT_END for multiline #defines

* libgimp/gimpintl.h
* libgimp/stdplugins-intl.h: use G_STMT_START and G_STMT_END for
multiline #defines

i18n stuff from David Monniaux

-Yosh
This commit is contained in:
Manish Singh
1999-10-08 22:09:41 +00:00
parent 4f6393deb5
commit dea7f1ce43
11 changed files with 3125 additions and 201 deletions

View File

@ -6,19 +6,22 @@
#include "libgimp/gimpintl.h"
#ifdef HAVE_LC_MESSAGES
#define INIT_I18N() \
setlocale(LC_MESSAGES, ""); \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins")
#define INIT_I18N() G_STMT_START{ \
setlocale(LC_MESSAGES, ""); \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins"); \
}G_STMT_END
#else
#define INIT_I18N() \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins")
#define INIT_I18N() G_STMT_START{ \
bindtextdomain("gimp-std-plugins", LOCALEDIR); \
textdomain("gimp-std-plugins"); \
}G_STMT_END
#endif
#define INIT_I18N_UI() \
gtk_set_locale(); \
setlocale (LC_NUMERIC, "C"); \
INIT_I18N();
#define INIT_I18N_UI() G_STMT_START{ \
gtk_set_locale(); \
setlocale (LC_NUMERIC, "C"); \
INIT_I18N(); \
}G_STMT_END
#endif /* __STDPLUGINS_INTL_H__ */