1 ##rem $Id: CatComp_h.sd 79 2007-01-01 11:45:21Z tactica $
5 /****************************************************************
7 This file was created automatically by `%fv'
10 using CatComp.sd 1.2 (24.09.1999)
14 ****************************************************************/
20 #include <exec/types.h>
54 #endif /* %b_NUMBERS */
57 /****************************************************************************/
64 #endif /* %b_STRINGS */
67 /****************************************************************************/
78 static const struct %b_ArrayType %b_Array[] =
87 /****************************************************************************/
92 static const char %b_Block[] =
95 "%4a" "%2t"\n %i_STR "%z"
102 /****************************************************************************/
107 #ifndef PROTO_LOCALE_H
108 #define __NOLIBBASE__
109 #define __NOGLOBALIFACE__
110 #include <proto/locale.h>
113 #ifndef %b_CODE_EXISTS
114 #define %b_CODE_EXISTS
116 CONST_STRPTR Get%bString(struct %b_LocaleInfo *li, LONG stringNum)
119 struct Library *LocaleBase = li->li_LocaleBase;
121 struct LocaleIFace *ILocale = li->li_ILocale;
124 CONST_STRPTR builtIn = "";
127 for (n = 0; n < sizeof(%b_Array) / sizeof(%b_Array[0]); n++)
129 if (%b_Array[n].cca_ID == stringNum)
131 builtIn = %b_Array[n].cca_Str;
139 return GetCatalogStr(li->li_Catalog, stringNum, (STRPTR)builtIn);
144 #ifdef __USE_INLINE__
145 return GetCatalogStr(li->li_Catalog, stringNum, (STRPTR)builtIn);
147 return ILocale->GetCatalogStr(li->li_Catalog, stringNum, (STRPTR)builtIn);
157 STRPTR Get%bString(struct %b_LocaleInfo *li, LONG stringNum);
159 #endif /* %b_CODE_EXISTS */
164 /****************************************************************************/
167 #endif /* %b_STRINGS_H */