# Correct the needed linklibs in curl-config also.
[AROS-Contrib.git] / bgui / include / bgui_locale.h
blob58111838973895b921f76958f7e6a8c6d6825732
1 #ifndef BGUILIB_LOCALE_H
2 #define BGUILIB_LOCALE_H
5 /****************************************************************************/
8 /* This file was created automatically by CatComp.
9 * Do NOT edit by hand!
13 #ifndef EXEC_TYPES_H
14 #include <exec/types.h>
15 #endif
17 #ifdef CATCOMP_ARRAY
18 #undef CATCOMP_NUMBERS
19 #undef CATCOMP_STRINGS
20 #define CATCOMP_NUMBERS
21 #define CATCOMP_STRINGS
22 #endif
24 #ifdef CATCOMP_BLOCK
25 #undef CATCOMP_STRINGS
26 #define CATCOMP_STRINGS
27 #endif
30 /****************************************************************************/
33 #ifdef CATCOMP_NUMBERS
35 #define MSG_BGUI_REQUESTA_TITLE 0
36 #define MSG_BGUI_HELP_CONTINUE 1
37 #define MSG_BGUI_HELP_TITLE 2
39 #endif /* CATCOMP_NUMBERS */
42 /****************************************************************************/
45 #ifdef CATCOMP_STRINGS
47 #define MSG_BGUI_REQUESTA_TITLE_STR "BGUI Request"
48 #define MSG_BGUI_HELP_CONTINUE_STR "Continue"
49 #define MSG_BGUI_HELP_TITLE_STR "BGUI Help..."
51 #endif /* CATCOMP_STRINGS */
54 /****************************************************************************/
57 #ifdef CATCOMP_ARRAY
59 struct CatCompArrayType
61 LONG cca_ID;
62 CONST_STRPTR cca_Str;
65 struct CatCompArrayType CatCompArray[] =
67 {MSG_BGUI_REQUESTA_TITLE,(STRPTR)MSG_BGUI_REQUESTA_TITLE_STR},
68 {MSG_BGUI_HELP_CONTINUE,(STRPTR)MSG_BGUI_HELP_CONTINUE_STR},
69 {MSG_BGUI_HELP_TITLE,(STRPTR)MSG_BGUI_HELP_TITLE_STR},
72 #endif /* CATCOMP_ARRAY */
75 /****************************************************************************/
78 #ifdef CATCOMP_BLOCK
80 char CatCompBlock[] =
82 "\x00\x00\x00\x00\x00\x0E"
83 MSG_BGUI_REQUESTA_TITLE_STR "\x00\x00"
84 "\x00\x00\x00\x01\x00\x0A"
85 MSG_BGUI_HELP_CONTINUE_STR "\x00\x00"
86 "\x00\x00\x00\x02\x00\x0E"
87 MSG_BGUI_HELP_TITLE_STR "\x00\x00"
90 #endif /* CATCOMP_BLOCK */
93 /****************************************************************************/
96 struct LocaleInfo
98 APTR li_LocaleBase;
99 APTR li_Catalog;
103 #ifdef CATCOMP_CODE
105 STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
107 LONG *l;
108 UWORD *w;
109 STRPTR builtIn;
111 l = (LONG *)CatCompBlock;
113 while (*l != stringNum)
115 w = (UWORD *)((ULONG)l + 4);
116 l = (LONG *)((ULONG)l + (ULONG)*w + 6);
118 builtIn = (STRPTR)((ULONG)l + 6);
120 #define XLocaleBase LocaleBase
121 #define LocaleBase li->li_LocaleBase
123 if (LocaleBase)
124 return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
125 #define LocaleBase XLocaleBase
126 #undef XLocaleBase
128 return(builtIn);
132 #endif /* CATCOMP_CODE */
135 /****************************************************************************/
138 #endif /* BGUILIB_LOCALE_H */