Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-01-21 06:30:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-01-21 06:30:40 +0400
commit38cee985bb6d6a45fe59cc539dfa9cd6412b6f36 (patch)
tree59497913e5644e045b21ecb7ba7ad0ee3a5a8ac8 /source/blender/blenfont
parentadd25e43adae7204d27685eafefde343096d5698 (diff)
code cleanup: style & warnings.
Diffstat (limited to 'source/blender/blenfont')
-rw-r--r--source/blender/blenfont/BLF_translation.h2
-rw-r--r--source/blender/blenfont/intern/blf_lang.c61
2 files changed, 31 insertions, 32 deletions
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 */