1 #ifndef BGUILIB_LOCALE_H
2 #define BGUILIB_LOCALE_H
5 /****************************************************************************/
8 /* This file was created automatically by CatComp.
14 #include <exec/types.h>
18 #undef CATCOMP_NUMBERS
19 #undef CATCOMP_STRINGS
20 #define CATCOMP_NUMBERS
21 #define CATCOMP_STRINGS
25 #undef CATCOMP_STRINGS
26 #define CATCOMP_STRINGS
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 /****************************************************************************/
59 struct CatCompArrayType
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 /****************************************************************************/
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 /****************************************************************************/
105 STRPTR
GetString(struct LocaleInfo
*li
, LONG stringNum
)
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
124 return(GetCatalogStr(li
->li_Catalog
,stringNum
,builtIn
));
125 #define LocaleBase XLocaleBase
132 #endif /* CATCOMP_CODE */
135 /****************************************************************************/
138 #endif /* BGUILIB_LOCALE_H */