Added some SD files which are needed by "contrib".
[AROS.git] / tools / flexcat / src / sd / C_h_orig.sd
blob9c5598afea6caadb14fafee6d2b48b3e1116e9fc
1 ##rem $Id: C_h_orig.sd 39849 2011-07-06 07:48:37Z sonic $
2 ##stringtype C
3 ##shortstrings
4 /****************************************************************
5    This file was created automatically by `%fv'
6    from "%f0".
8    Do NOT edit by hand!
9 ****************************************************************/
11 #ifndef %b_H
12 #define %b_H
15 #ifndef EXEC_TYPES_H
16 #include <exec/types.h>
17 #endif
20 #ifdef CATCOMP_ARRAY
21 #undef CATCOMP_NUMBERS
22 #undef CATCOMP_STRINGS
23 #define CATCOMP_NUMBERS
24 #define CATCOMP_STRINGS
25 #endif
27 #ifdef CATCOMP_BLOCK
28 #undef CATCOMP_STRINGS
29 #define CATCOMP_STRINGS
30 #endif
32 /***************************************************************/
35 #ifdef CATCOMP_NUMBERS
37 #define %i %d
39 #endif /* CATCOMP_NUMBERS */
42 /***************************************************************/
44 #ifdef CATCOMP_STRINGS
46 #define %i_STR %s
48 #endif /* CATCOMP_STRINGS */
51 /***************************************************************/
54 #ifdef CATCOMP_ARRAY
56 struct CatCompArrayType
58   LONG   cca_ID;
59   STRPTR cca_Str;
62 static const struct CatCompArrayType CatCompArray[] =
64   {%i,(STRPTR)%i_STR},
65   {0,NULL}
68 #endif /* CATCOMP_ARRAY */
70 /***************************************************************/
73 #ifdef CATCOMP_BLOCK
75 //static const chat CatCompBlock[] =
76 //{
77 //     
78 //};
80 #endif /* CATCOMP_BLOCK */
82 /***************************************************************/
84 struct LocaleInfo
86   APTR li_LocaleBase;
87   APTR li_Catalog;
91 #ifdef CATCOMP_CODE
93 STRPTR GetString(struct LocaleInfo *li, LONG stringNum)
95   LONG *l;
96   UWORD *w;
97   STRPTR  builtIn;
99   l = (LONG *)CatCompBlock;
101   while (*l != stringNum)
102   {
103     w = (UWORD *)((IPTR)l + 4);
104     l = (LONG *)((IPTR)l + (LONG)*w + 6);
105   }
106   builtIn = (STRPTR)((IPTR)l + 6);
108 #define XLocaleBase LocaleBase
109 #define LocaleBase li->li_LocaleBase
111   if (LocaleBase)
112     return(GetCatalogStr(li->li_Catalog,stringNum,builtIn));
113 #define LocaleBase XLocaleBase
114 #undef XLocaleBase
116   return (builtIn);
117 }  
119 #endif /* CATCOMP_CODE */
121 /***************************************************************/
124 #endif