Wanderer/Info: fix compilation
[AROS.git] / tools / flexcat / src / include / defines / codesets.h
blobf1a0cec29057db880e4f176c8b7b2fa089d62156
1 /* Automatically generated header (sfdc 1.4)! Do not edit! */
3 #ifndef _INLINE_CODESETS_H
4 #define _INLINE_CODESETS_H
6 #ifndef _SFDC_VARARG_DEFINED
7 #define _SFDC_VARARG_DEFINED
8 #ifdef __HAVE_IPTR_ATTR__
9 typedef APTR _sfdc_vararg __attribute__((iptr));
10 #else
11 typedef ULONG _sfdc_vararg;
12 #endif /* __HAVE_IPTR_ATTR__ */
13 #endif /* _SFDC_VARARG_DEFINED */
15 #ifndef AROS_LIBCALL_H
16 #include <aros/libcall.h>
17 #endif /* !AROS_LIBCALL_H */
19 #ifndef CODESETS_BASE_NAME
20 #define CODESETS_BASE_NAME CodesetsBase
21 #endif /* !CODESETS_BASE_NAME */
23 #define CodesetsConvertUTF32toUTF16(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
24 AROS_LC5(ULONG, CodesetsConvertUTF32toUTF16, \
25 AROS_LCA(const UTF32 **, (___sourceStart), A0), \
26 AROS_LCA(const UTF32 *, (___sourceEnd), A1), \
27 AROS_LCA(UTF16 **, (___targetStart), A2), \
28 AROS_LCA(UTF16 *, (___targetEnd), A3), \
29 AROS_LCA(ULONG, (___flags), D0), \
30 struct Library *, CODESETS_BASE_NAME, 6, Codesets)
32 #define CodesetsConvertUTF16toUTF32(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
33 AROS_LC5(ULONG, CodesetsConvertUTF16toUTF32, \
34 AROS_LCA(const UTF16 **, (___sourceStart), A0), \
35 AROS_LCA(const UTF16 *, (___sourceEnd), A1), \
36 AROS_LCA(UTF32 **, (___targetStart), A2), \
37 AROS_LCA(UTF32 *, (___targetEnd), A3), \
38 AROS_LCA(ULONG, (___flags), D0), \
39 struct Library *, CODESETS_BASE_NAME, 7, Codesets)
41 #define CodesetsConvertUTF16toUTF8(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
42 AROS_LC5(ULONG, CodesetsConvertUTF16toUTF8, \
43 AROS_LCA(const UTF16 **, (___sourceStart), A0), \
44 AROS_LCA(const UTF16 *, (___sourceEnd), A1), \
45 AROS_LCA(UTF8 **, (___targetStart), A2), \
46 AROS_LCA(UTF8 *, (___targetEnd), A3), \
47 AROS_LCA(ULONG, (___flags), D0), \
48 struct Library *, CODESETS_BASE_NAME, 8, Codesets)
50 #define CodesetsIsLegalUTF8(___source, ___length) \
51 AROS_LC2(BOOL, CodesetsIsLegalUTF8, \
52 AROS_LCA(const UTF8 *, (___source), A0), \
53 AROS_LCA(ULONG, (___length), D0), \
54 struct Library *, CODESETS_BASE_NAME, 9, Codesets)
56 #define CodesetsIsLegalUTF8Sequence(___source, ___sourceEnd) \
57 AROS_LC2(BOOL, CodesetsIsLegalUTF8Sequence, \
58 AROS_LCA(const UTF8 *, (___source), A0), \
59 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
60 struct Library *, CODESETS_BASE_NAME, 10, Codesets)
62 #define CodesetsConvertUTF8toUTF16(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
63 AROS_LC5(ULONG, CodesetsConvertUTF8toUTF16, \
64 AROS_LCA(const UTF8 **, (___sourceStart), A0), \
65 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
66 AROS_LCA(UTF16 **, (___targetStart), A2), \
67 AROS_LCA(UTF16 *, (___targetEnd), A3), \
68 AROS_LCA(ULONG, (___flags), D0), \
69 struct Library *, CODESETS_BASE_NAME, 11, Codesets)
71 #define CodesetsConvertUTF32toUTF8(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
72 AROS_LC5(ULONG, CodesetsConvertUTF32toUTF8, \
73 AROS_LCA(const UTF32 **, (___sourceStart), A0), \
74 AROS_LCA(const UTF32 *, (___sourceEnd), A1), \
75 AROS_LCA(UTF8 **, (___targetStart), A2), \
76 AROS_LCA(UTF8 *, (___targetEnd), A3), \
77 AROS_LCA(ULONG, (___flags), D0), \
78 struct Library *, CODESETS_BASE_NAME, 12, Codesets)
80 #define CodesetsConvertUTF8toUTF32(___sourceStart, ___sourceEnd, ___targetStart, ___targetEnd, ___flags) \
81 AROS_LC5(ULONG, CodesetsConvertUTF8toUTF32, \
82 AROS_LCA(const UTF8 **, (___sourceStart), A0), \
83 AROS_LCA(const UTF8 *, (___sourceEnd), A1), \
84 AROS_LCA(UTF32 **, (___targetStart), A2), \
85 AROS_LCA(UTF32 *, (___targetEnd), A3), \
86 AROS_LCA(ULONG, (___flags), D0), \
87 struct Library *, CODESETS_BASE_NAME, 13, Codesets)
89 #define CodesetsSetDefaultA(___name, ___attrs) \
90 AROS_LC2(struct codeset *, CodesetsSetDefaultA, \
91 AROS_LCA(STRPTR, (___name), A0), \
92 AROS_LCA(struct TagItem *, (___attrs), A1), \
93 struct Library *, CODESETS_BASE_NAME, 14, Codesets)
95 #ifndef NO_INLINE_STDARG
96 #define CodesetsSetDefault(___name, ___attrs, ...) \
97 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsSetDefaultA((___name), (struct TagItem *) _tags); })
98 #endif /* !NO_INLINE_STDARG */
100 #define CodesetsFreeA(___obj, ___attrs) \
101 AROS_LC2NR(void, CodesetsFreeA, \
102 AROS_LCA(APTR, (___obj), A0), \
103 AROS_LCA(struct TagItem *, (___attrs), A1), \
104 struct Library *, CODESETS_BASE_NAME, 15, Codesets)
106 #ifndef NO_INLINE_STDARG
107 #define CodesetsFree(___obj, ___attrs, ...) \
108 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFreeA((___obj), (struct TagItem *) _tags); })
109 #endif /* !NO_INLINE_STDARG */
111 #define CodesetsSupportedA(___attrs) \
112 AROS_LC1(STRPTR *, CodesetsSupportedA, \
113 AROS_LCA(struct TagItem *, (___attrs), A0), \
114 struct Library *, CODESETS_BASE_NAME, 16, Codesets)
116 #ifndef NO_INLINE_STDARG
117 #define CodesetsSupported(___attrs, ...) \
118 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsSupportedA((struct TagItem *) _tags); })
119 #endif /* !NO_INLINE_STDARG */
121 #define CodesetsFindA(___name, ___attrs) \
122 AROS_LC2(struct codeset *, CodesetsFindA, \
123 AROS_LCA(STRPTR, (___name), A0), \
124 AROS_LCA(struct TagItem *, (___attrs), A1), \
125 struct Library *, CODESETS_BASE_NAME, 17, Codesets)
127 #ifndef NO_INLINE_STDARG
128 #define CodesetsFind(___name, ___attrs, ...) \
129 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFindA((___name), (struct TagItem *) _tags); })
130 #endif /* !NO_INLINE_STDARG */
132 #define CodesetsFindBestA(___attrs) \
133 AROS_LC1(struct codeset *, CodesetsFindBestA, \
134 AROS_LCA(struct TagItem *, (___attrs), A0), \
135 struct Library *, CODESETS_BASE_NAME, 18, Codesets)
137 #ifndef NO_INLINE_STDARG
138 #define CodesetsFindBest(___attrs, ...) \
139 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFindBestA((struct TagItem *) _tags); })
140 #endif /* !NO_INLINE_STDARG */
142 #define CodesetsUTF8Len(___str) \
143 AROS_LC1(ULONG, CodesetsUTF8Len, \
144 AROS_LCA(const UTF8 *, (___str), A0), \
145 struct Library *, CODESETS_BASE_NAME, 19, Codesets)
147 #define CodesetsUTF8ToStrA(___attrs) \
148 AROS_LC1(STRPTR, CodesetsUTF8ToStrA, \
149 AROS_LCA(struct TagItem *, (___attrs), A0), \
150 struct Library *, CODESETS_BASE_NAME, 20, Codesets)
152 #ifndef NO_INLINE_STDARG
153 #define CodesetsUTF8ToStr(___attrs, ...) \
154 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsUTF8ToStrA((struct TagItem *) _tags); })
155 #endif /* !NO_INLINE_STDARG */
157 #define CodesetsUTF8CreateA(___attrs) \
158 AROS_LC1(UTF8 *, CodesetsUTF8CreateA, \
159 AROS_LCA(struct TagItem *, (___attrs), A0), \
160 struct Library *, CODESETS_BASE_NAME, 21, Codesets)
162 #ifndef NO_INLINE_STDARG
163 #define CodesetsUTF8Create(___attrs, ...) \
164 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsUTF8CreateA((struct TagItem *) _tags); })
165 #endif /* !NO_INLINE_STDARG */
167 #define CodesetsEncodeB64A(___attrs) \
168 AROS_LC1(ULONG, CodesetsEncodeB64A, \
169 AROS_LCA(struct TagItem *, (___attrs), A0), \
170 struct Library *, CODESETS_BASE_NAME, 22, Codesets)
172 #ifndef NO_INLINE_STDARG
173 #define CodesetsEncodeB64(___attrs, ...) \
174 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsEncodeB64A((struct TagItem *) _tags); })
175 #endif /* !NO_INLINE_STDARG */
177 #define CodesetsDecodeB64A(___attrs) \
178 AROS_LC1(ULONG, CodesetsDecodeB64A, \
179 AROS_LCA(struct TagItem *, (___attrs), A0), \
180 struct Library *, CODESETS_BASE_NAME, 23, Codesets)
182 #ifndef NO_INLINE_STDARG
183 #define CodesetsDecodeB64(___attrs, ...) \
184 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsDecodeB64A((struct TagItem *) _tags); })
185 #endif /* !NO_INLINE_STDARG */
187 #define CodesetsStrLenA(___str, ___attrs) \
188 AROS_LC2(ULONG, CodesetsStrLenA, \
189 AROS_LCA(STRPTR, (___str), A0), \
190 AROS_LCA(struct TagItem *, (___attrs), A1), \
191 struct Library *, CODESETS_BASE_NAME, 24, Codesets)
193 #ifndef NO_INLINE_STDARG
194 #define CodesetsStrLen(___str, ___attrs, ...) \
195 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsStrLenA((___str), (struct TagItem *) _tags); })
196 #endif /* !NO_INLINE_STDARG */
198 #define CodesetsIsValidUTF8(___str) \
199 AROS_LC1(BOOL, CodesetsIsValidUTF8, \
200 AROS_LCA(STRPTR, (___str), A0), \
201 struct Library *, CODESETS_BASE_NAME, 25, Codesets)
203 #define CodesetsFreeVecPooledA(___pool, ___mem, ___attrs) \
204 AROS_LC3NR(void, CodesetsFreeVecPooledA, \
205 AROS_LCA(APTR, (___pool), A0), \
206 AROS_LCA(APTR, (___mem), A1), \
207 AROS_LCA(struct TagItem *, (___attrs), A2), \
208 struct Library *, CODESETS_BASE_NAME, 26, Codesets)
210 #ifndef NO_INLINE_STDARG
211 #define CodesetsFreeVecPooled(___pool, ___mem, ___attrs, ...) \
212 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsFreeVecPooledA((___pool), (___mem), (struct TagItem *) _tags); })
213 #endif /* !NO_INLINE_STDARG */
215 #define CodesetsConvertStrA(___attrs) \
216 AROS_LC1(STRPTR, CodesetsConvertStrA, \
217 AROS_LCA(struct TagItem *, (___attrs), A0), \
218 struct Library *, CODESETS_BASE_NAME, 27, Codesets)
220 #ifndef NO_INLINE_STDARG
221 #define CodesetsConvertStr(___attrs, ...) \
222 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsConvertStrA((struct TagItem *) _tags); })
223 #endif /* !NO_INLINE_STDARG */
225 #define CodesetsListCreateA(___attrs) \
226 AROS_LC1(struct codesetList *, CodesetsListCreateA, \
227 AROS_LCA(struct TagItem *, (___attrs), A0), \
228 struct Library *, CODESETS_BASE_NAME, 28, Codesets)
230 #ifndef NO_INLINE_STDARG
231 #define CodesetsListCreate(___attrs, ...) \
232 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsListCreateA((struct TagItem *) _tags); })
233 #endif /* !NO_INLINE_STDARG */
235 #define CodesetsListDeleteA(___attrs) \
236 AROS_LC1(BOOL, CodesetsListDeleteA, \
237 AROS_LCA(struct TagItem *, (___attrs), A0), \
238 struct Library *, CODESETS_BASE_NAME, 29, Codesets)
240 #ifndef NO_INLINE_STDARG
241 #define CodesetsListDelete(___tag1, ...) \
242 ({_sfdc_vararg _tags[] = { ___tag1, __VA_ARGS__ }; CodesetsListDeleteA((struct TagItem *) _tags); })
243 #endif /* !NO_INLINE_STDARG */
245 #define CodesetsListAddA(___codesetsList, ___attrs) \
246 AROS_LC2(BOOL, CodesetsListAddA, \
247 AROS_LCA(struct codesetList *, (___codesetsList), A0), \
248 AROS_LCA(struct TagItem *, (___attrs), A1), \
249 struct Library *, CODESETS_BASE_NAME, 30, Codesets)
251 #ifndef NO_INLINE_STDARG
252 #define CodesetsListAdd(___codesetsList, ___attrs, ...) \
253 ({_sfdc_vararg _tags[] = { ___attrs, __VA_ARGS__ }; CodesetsListAddA((___codesetsList), (struct TagItem *) _tags); })
254 #endif /* !NO_INLINE_STDARG */
256 #define CodesetsListRemoveA(___attrs) \
257 AROS_LC1(BOOL, CodesetsListRemoveA, \
258 AROS_LCA(struct TagItem *, (___attrs), A0), \
259 struct Library *, CODESETS_BASE_NAME, 31, Codesets)
261 #ifndef NO_INLINE_STDARG
262 #define CodesetsListRemove(___tag1, ...) \
263 ({_sfdc_vararg _tags[] = { ___tag1, __VA_ARGS__ }; CodesetsListRemoveA((struct TagItem *) _tags); })
264 #endif /* !NO_INLINE_STDARG */
266 #endif /* !_INLINE_CODESETS_H */