From 38cee985bb6d6a45fe59cc539dfa9cd6412b6f36 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Jan 2013 02:30:40 +0000 Subject: code cleanup: style & warnings. --- source/blender/blenfont/BLF_translation.h | 2 +- source/blender/blenfont/intern/blf_lang.c | 61 +++++++++++++++---------------- 2 files changed, 31 insertions(+), 32 deletions(-) (limited to 'source/blender/blenfont') diff --git a/source/blender/blenfont/BLF_translation.h b/source/blender/blenfont/BLF_translation.h index 59f66cae727..7194c6c23c1 100644 --- a/source/blender/blenfont/BLF_translation.h +++ b/source/blender/blenfont/BLF_translation.h @@ -200,4 +200,4 @@ typedef struct //#undef _BLF_I18NCONTEXTS_ITEM -#endif /* __BLF_TRANSLATION_H__ */ \ No newline at end of file +#endif /* __BLF_TRANSLATION_H__ */ diff --git a/source/blender/blenfont/intern/blf_lang.c b/source/blender/blenfont/intern/blf_lang.c index ab29fae1a58..84e2ca8edcd 100644 --- a/source/blender/blenfont/intern/blf_lang.c +++ b/source/blender/blenfont/intern/blf_lang.c @@ -248,36 +248,6 @@ const char *BLF_lang_get(void) #undef LOCALE #undef ULANGUAGE -#else /* ! WITH_INTERNATIONAL */ - -EnumPropertyItem *BLF_RNA_lang_enum_properties(void) -{ - return NULL; -} - -void BLF_lang_init(void) -{ - return; -} - -void BLF_lang_free(void) -{ - return; -} - -void BLF_lang_set(const char *UNUSED(str)) -{ - return; -} - -const char *BLF_lang_get(void) -{ - return ""; -} - -#endif /* WITH_INTERNATIONAL */ - - /* Get locale's elements (if relevant pointer is not NULL and element actually exists, e.g. if there is no variant, * *variant and *language_variant will always be NULL). * Non-null elements are always MEM_mallocN'ed, it's the caller's responsibility to free them. @@ -328,4 +298,33 @@ void BLF_locale_explode(const char *locale, char **language, char **country, cha if (_t && !language) { MEM_freeN(_t); } -} \ No newline at end of file +} + +#else /* ! WITH_INTERNATIONAL */ + +struct EnumPropertyItem *BLF_RNA_lang_enum_properties(void) +{ + return NULL; +} + +void BLF_lang_init(void) +{ + return; +} + +void BLF_lang_free(void) +{ + return; +} + +void BLF_lang_set(const char *UNUSED(str)) +{ + return; +} + +const char *BLF_lang_get(void) +{ + return ""; +} + +#endif /* WITH_INTERNATIONAL */ -- cgit v1.2.3