summaryrefslogtreecommitdiffstats
path: root/apps/language.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2008-02-18 12:17:34 +0000
committerDaniel Stenberg <daniel@haxx.se>2008-02-18 12:17:34 +0000
commit8ebbe99328248d45f3937c4f15f936d5d36f4a58 (patch)
tree58dfa9555171528528912a8cb6109d351ea767eb /apps/language.h
parent43141cbfdb247b7e64bc3d3d5732f43732d59da0 (diff)
downloadrockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.gz
rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.tar.bz2
rockbox-8ebbe99328248d45f3937c4f15f936d5d36f4a58.zip
FS#8482 take two. Make the language files built first, so that the largest
size can be used as buffer size for languages. Work to this also contributed by Jonas Haggqvist. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16343 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/language.h')
-rw-r--r--apps/language.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/apps/language.h b/apps/language.h
index d8f899b573..14c8084a83 100644
--- a/apps/language.h
+++ b/apps/language.h
@@ -1,3 +1,5 @@
+#ifndef __LANGUAGE_H
+#define __LANGUAGE_H
/***************************************************************************
* __________ __ ___.
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
@@ -7,7 +9,7 @@
* \/ \/ \/ \/ \/
* $Id$
*
- * Copyright (C) 2002 Daniel Stenberg
+ * Copyright (C) 2002, 2008 Daniel Stenberg
*
* All files in this archive are subject to the GNU General Public License.
* See the file COPYING in the source tree root for full license agreement.
@@ -17,8 +19,10 @@
*
****************************************************************************/
-/* size of the buffer used for loadable, translated strings */
-#define MAX_LANGUAGE_SIZE 23500
+/* The following header is generated by the build system and only defines
+ MAX_LANGUAGE_SIZE to be the size of the largest currently available
+ language! */
+#include "max_language_size.h"
/* both these must match the two initial bytes in the binary lang file */
#define LANGUAGE_COOKIE 0x1a
@@ -29,3 +33,5 @@ void lang_init(void);
/* load a given language file */
int lang_load(const char *filename);
+
+#endif