summaryrefslogtreecommitdiff
path: root/newgrf_text.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-08-19 16:30:05 +0000
committertron <tron@openttd.org>2006-08-19 16:30:05 +0000
commita2129f37997dc570a482811341ca7eb812dd5ba8 (patch)
treeedfcf5247a449d1d20cf3a8de57f4637add921cb /newgrf_text.h
parent3e087242a7ee75ecf459d199a88703e9154d03ac (diff)
downloadopenttd-a2129f37997dc570a482811341ca7eb812dd5ba8.tar.xz
(svn r5952) - struct GRFText{Entry,} are private to newgrf_text.c
- use a variable size array instead of another malloc()
Diffstat (limited to 'newgrf_text.h')
-rw-r--r--newgrf_text.h25
1 files changed, 0 insertions, 25 deletions
diff --git a/newgrf_text.h b/newgrf_text.h
index 2b7886c79..d5b787a8c 100644
--- a/newgrf_text.h
+++ b/newgrf_text.h
@@ -6,31 +6,6 @@
* Header of Action 04 "universal holder" structure and functions
*/
-/**
- * Element of the linked list.
- * Each of those elements represent the string,
- * but according to a different lang.
- */
-typedef struct GRFText {
- byte langid;
- char *text;
- struct GRFText *next;
-} GRFText;
-
-
-/**
- * Holder of the above structure.
- * Putting both grfid and stringid togueter allow us to avoid duplicates,
- * since it is NOT SUPPOSED to happen.
- */
-typedef struct GRFTextEntry {
- uint32 grfid;
- uint16 stringid;
- StringID def_string;
- GRFText *textholder;
-} GRFTextEntry;
-
-
StringID AddGRFString(uint32 grfid, uint16 stringid, byte langid, bool new_scheme, const char *text_to_add, StringID def_string);
StringID GetGRFStringID(uint32 grfid, uint16 stringid);
char *GetGRFString(char *buff, uint16 stringid);