summaryrefslogtreecommitdiff
path: root/fluid/proj/i18n.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fluid/proj/i18n.cxx')
-rw-r--r--fluid/proj/i18n.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/fluid/proj/i18n.cxx b/fluid/proj/i18n.cxx
index d2b9b202c..dc4380bd4 100644
--- a/fluid/proj/i18n.cxx
+++ b/fluid/proj/i18n.cxx
@@ -28,7 +28,7 @@ using namespace fld::proj;
Reset all project setting to create a new empty project.
*/
void I18n::reset() {
- type = fld::I18n_Type::NONE;
+ type = FLD_I18N_TYPE_NONE;
gnu_include = "<libintl.h>";
gnu_conditional = "";
@@ -53,33 +53,33 @@ void I18n::read(io::Project_Reader &f, const char *key) {
} else if (!strcmp(key, "i18n_pos_set")) {
posix_set = f.read_word();
} else if (!strcmp(key, "i18n_include")) {
- if (type == fld::I18n_Type::GNU) {
+ if (type == FLD_I18N_TYPE_GNU) {
gnu_include = f.read_word();
- } else if (type == fld::I18n_Type::POSIX) {
+ } else if (type == FLD_I18N_TYPE_POSIX) {
posix_include = f.read_word();
}
} else if (!strcmp(key, "i18n_conditional")) {
- if (type == fld::I18n_Type::GNU) {
+ if (type == FLD_I18N_TYPE_GNU) {
gnu_conditional = f.read_word();
- } else if (type == fld::I18n_Type::POSIX) {
+ } else if (type == FLD_I18N_TYPE_POSIX) {
posix_conditional = f.read_word();
}
}
}
void I18n::write(io::Project_Writer &f) const {
- if ((type != fld::I18n_Type::NONE)) {
+ if ((type != FLD_I18N_TYPE_NONE)) {
f.write_string("\ni18n_type %d", static_cast<int>(type));
switch (type) {
- case fld::I18n_Type::NONE:
+ case FLD_I18N_TYPE_NONE:
break;
- case fld::I18n_Type::GNU : /* GNU gettext */
+ case FLD_I18N_TYPE_GNU : /* GNU gettext */
f.write_string("\ni18n_include"); f.write_word(gnu_include);
f.write_string("\ni18n_conditional"); f.write_word(gnu_conditional);
f.write_string("\ni18n_gnu_function"); f.write_word(gnu_function);
f.write_string("\ni18n_gnu_static_function"); f.write_word(gnu_static_function);
break;
- case fld::I18n_Type::POSIX : /* POSIX catgets */
+ case FLD_I18N_TYPE_POSIX : /* POSIX catgets */
f.write_string("\ni18n_include"); f.write_word(posix_include);
f.write_string("\ni18n_conditional"); f.write_word(posix_conditional);
if (!posix_file.empty()) {