grub2: bring back build of aros-side grub2 tools
[AROS.git] / workbench / libs / codesets / include / ppcinline / codesets.h
blob1cd6037cad2ae0642846f574e1ff03787fa8af9f
1 /***************************************************************************
3 codesets.library - Amiga shared library for handling different codesets
4 Copyright (C) 2001-2005 by Alfonso [alfie] Ranieri <alforan@tin.it>.
5 Copyright (C) 2005-2014 codesets.library Open Source Team
7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Lesser General Public
9 License as published by the Free Software Foundation; either
10 version 2.1 of the License, or (at your option) any later version.
12 This library is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 Lesser General Public License for more details.
17 codesets.library project: http://sourceforge.net/projects/codesetslib/
19 $Id$
21 ***************************************************************************/
23 /* Automatically generated header! Do not edit! */
25 #ifndef _PPCINLINE_CODESETS_H
26 #define _PPCINLINE_CODESETS_H
28 #ifndef __PPCINLINE_MACROS_H
29 #include <ppcinline/macros.h>
30 #endif /* !__PPCINLINE_MACROS_H */
32 #ifndef CODESETS_BASE_NAME
33 #define CODESETS_BASE_NAME CodesetsBase
34 #endif /* !CODESETS_BASE_NAME */
36 #define CodesetsSupportedA(__p0) \
37 LP1(96, STRPTR *, CodesetsSupportedA, \
38 struct TagItem *, __p0, a0, \
39 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
41 #define CodesetsIsLegalUTF8(__p0, __p1) \
42 LP2(54, BOOL , CodesetsIsLegalUTF8, \
43 const UTF8 *, __p0, a0, \
44 ULONG , __p1, d0, \
45 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
47 #define CodesetsListRemoveA(__p0) \
48 LP1(186, BOOL , CodesetsListRemoveA, \
49 struct TagItem *, __p0, a0, \
50 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
52 #define CodesetsFindBestA(__p0) \
53 LP1(108, struct codeset *, CodesetsFindBestA, \
54 struct TagItem *, __p0, a0, \
55 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
57 #define CodesetsListCreateA(__p0) \
58 LP1(168, struct codesetList *, CodesetsListCreateA, \
59 struct TagItem *, __p0, a0, \
60 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
62 #define CodesetsDecodeB64A(__p0) \
63 LP1(138, ULONG , CodesetsDecodeB64A, \
64 struct TagItem *, __p0, a0, \
65 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
67 #define CodesetsIsValidUTF8(__p0) \
68 LP1(150, BOOL , CodesetsIsValidUTF8, \
69 STRPTR , __p0, a0, \
70 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
72 #define CodesetsStrLenA(__p0, __p1) \
73 LP2(144, ULONG , CodesetsStrLenA, \
74 STRPTR , __p0, a0, \
75 struct TagItem *, __p1, a1, \
76 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
78 #define CodesetsConvertStrA(__p0) \
79 LP1(162, STRPTR , CodesetsConvertStrA, \
80 struct TagItem *, __p0, a0, \
81 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
83 #define CodesetsFindA(__p0, __p1) \
84 LP2(102, struct codeset *, CodesetsFindA, \
85 STRPTR , __p0, a0, \
86 struct TagItem *, __p1, a1, \
87 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
89 #define CodesetsFreeA(__p0, __p1) \
90 LP2NR(90, CodesetsFreeA, \
91 APTR , __p0, a0, \
92 struct TagItem *, __p1, a1, \
93 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
95 #define CodesetsUTF8ToStrA(__p0) \
96 LP1(120, STRPTR , CodesetsUTF8ToStrA, \
97 struct TagItem *, __p0, a0, \
98 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
100 #define CodesetsFreeVecPooledA(__p0, __p1, __p2) \
101 LP3NR(156, CodesetsFreeVecPooledA, \
102 APTR , __p0, a0, \
103 APTR , __p1, a1, \
104 struct TagItem *, __p2, a2, \
105 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
107 #define CodesetsUTF8Len(__p0) \
108 LP1(114, ULONG , CodesetsUTF8Len, \
109 const UTF8 *, __p0, a0, \
110 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
112 #define CodesetsListAddA(__p0, __p1) \
113 LP2(180, BOOL , CodesetsListAddA, \
114 struct codesetList *, __p0, a0, \
115 struct TagItem *, __p1, a1, \
116 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
118 #define CodesetsConvertUTF32toUTF16(__p0, __p1, __p2, __p3, __p4) \
119 LP5(36, ULONG , CodesetsConvertUTF32toUTF16, \
120 const UTF32 **, __p0, a0, \
121 const UTF32 *, __p1, a1, \
122 UTF16 **, __p2, a2, \
123 UTF16 *, __p3, a3, \
124 ULONG , __p4, d0, \
125 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
127 #define CodesetsConvertUTF16toUTF32(__p0, __p1, __p2, __p3, __p4) \
128 LP5(42, ULONG , CodesetsConvertUTF16toUTF32, \
129 const UTF16 **, __p0, a0, \
130 const UTF16 *, __p1, a1, \
131 UTF32 **, __p2, a2, \
132 UTF32 *, __p3, a3, \
133 ULONG , __p4, d0, \
134 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
136 #define CodesetsListDeleteA(__p0) \
137 LP1(174, BOOL , CodesetsListDeleteA, \
138 struct TagItem *, __p0, a0, \
139 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
141 #define CodesetsSetDefaultA(__p0, __p1) \
142 LP2(84, struct codeset *, CodesetsSetDefaultA, \
143 STRPTR , __p0, a0, \
144 struct TagItem *, __p1, a1, \
145 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
147 #define CodesetsEncodeB64A(__p0) \
148 LP1(132, ULONG , CodesetsEncodeB64A, \
149 struct TagItem *, __p0, a0, \
150 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
152 #define CodesetsUTF8CreateA(__p0) \
153 LP1(126, UTF8 *, CodesetsUTF8CreateA, \
154 struct TagItem *, __p0, a0, \
155 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
157 #define CodesetsConvertUTF32toUTF8(__p0, __p1, __p2, __p3, __p4) \
158 LP5(72, ULONG , CodesetsConvertUTF32toUTF8, \
159 const UTF32 **, __p0, a0, \
160 const UTF32 *, __p1, a1, \
161 UTF8 **, __p2, a2, \
162 UTF8 *, __p3, a3, \
163 ULONG , __p4, d0, \
164 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
166 #define CodesetsConvertUTF8toUTF32(__p0, __p1, __p2, __p3, __p4) \
167 LP5(78, ULONG , CodesetsConvertUTF8toUTF32, \
168 const UTF8 **, __p0, a0, \
169 const UTF8 *, __p1, a1, \
170 UTF32 **, __p2, a2, \
171 UTF32 *, __p3, a3, \
172 ULONG , __p4, d0, \
173 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
175 #define CodesetsConvertUTF16toUTF8(__p0, __p1, __p2, __p3, __p4) \
176 LP5(48, ULONG , CodesetsConvertUTF16toUTF8, \
177 const UTF16 **, __p0, a0, \
178 const UTF16 *, __p1, a1, \
179 UTF8 **, __p2, a2, \
180 UTF8 *, __p3, a3, \
181 ULONG , __p4, d0, \
182 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
184 #define CodesetsIsLegalUTF8Sequence(__p0, __p1) \
185 LP2(60, BOOL , CodesetsIsLegalUTF8Sequence, \
186 const UTF8 *, __p0, a0, \
187 const UTF8 *, __p1, a1, \
188 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
190 #define CodesetsConvertUTF8toUTF16(__p0, __p1, __p2, __p3, __p4) \
191 LP5(66, ULONG , CodesetsConvertUTF8toUTF16, \
192 const UTF8 **, __p0, a0, \
193 const UTF8 *, __p1, a1, \
194 UTF16 **, __p2, a2, \
195 UTF16 *, __p3, a3, \
196 ULONG , __p4, d0, \
197 , CODESETS_BASE_NAME, 0, 0, 0, 0, 0, 0)
199 #if defined(USE_INLINE_STDARG) && !defined(__STRICT_ANSI__)
201 #include <stdarg.h>
203 #define CodesetsSupported(...) \
204 ({ULONG _tags[] = { __VA_ARGS__ }; \
205 CodesetsSupportedA((struct TagItem *)_tags);})
207 #define CodesetsListRemove(...) \
208 ({ULONG _tags[] = { __VA_ARGS__ }; \
209 CodesetsListRemoveA((struct TagItem *)_tags);})
211 #define CodesetsListDelete(...) \
212 ({ULONG _tags[] = { __VA_ARGS__ }; \
213 CodesetsListDeleteA((struct TagItem *)_tags);})
215 #define CodesetsDecodeB64(...) \
216 ({ULONG _tags[] = { __VA_ARGS__ }; \
217 CodesetsDecodeB64A((struct TagItem *)_tags);})
219 #define CodesetsListCreate(...) \
220 ({ULONG _tags[] = { __VA_ARGS__ }; \
221 CodesetsListCreateA((struct TagItem *)_tags);})
223 #define CodesetsSetDefault(__p0, ...) \
224 ({ULONG _tags[] = { __VA_ARGS__ }; \
225 CodesetsSetDefaultA(__p0, (struct TagItem *)_tags);})
227 #define CodesetsStrLen(__p0, ...) \
228 ({ULONG _tags[] = { __VA_ARGS__ }; \
229 CodesetsStrLenA(__p0, (struct TagItem *)_tags);})
231 #define CodesetsConvertStr(...) \
232 ({ULONG _tags[] = { __VA_ARGS__ }; \
233 CodesetsConvertStrA((struct TagItem *)_tags);})
235 #define CodesetsUTF8Create(...) \
236 ({ULONG _tags[] = { __VA_ARGS__ }; \
237 CodesetsUTF8CreateA((struct TagItem *)_tags);})
239 #define CodesetsFree(__p0, ...) \
240 ({ULONG _tags[] = { __VA_ARGS__ }; \
241 CodesetsFreeA(__p0, (struct TagItem *)_tags);})
243 #define CodesetsFindBest(...) \
244 ({ULONG _tags[] = { __VA_ARGS__ }; \
245 CodesetsFindBestA((struct TagItem *)_tags);})
247 #define CodesetsEncodeB64(...) \
248 ({ULONG _tags[] = { __VA_ARGS__ }; \
249 CodesetsEncodeB64A((struct TagItem *)_tags);})
251 #define CodesetsFind(__p0, ...) \
252 ({ULONG _tags[] = { __VA_ARGS__ }; \
253 CodesetsFindA(__p0, (struct TagItem *)_tags);})
255 #define CodesetsFreeVecPooled(__p0, __p1, ...) \
256 ({ULONG _tags[] = { __VA_ARGS__ }; \
257 CodesetsFreeVecPooledA(__p0, __p1, (struct TagItem *)_tags);})
259 #define CodesetsUTF8ToStr(...) \
260 ({ULONG _tags[] = { __VA_ARGS__ }; \
261 CodesetsUTF8ToStrA((struct TagItem *)_tags);})
263 #define CodesetsListAdd(__p0, ...) \
264 ({ULONG _tags[] = { __VA_ARGS__ }; \
265 CodesetsListAddA(__p0, (struct TagItem *)_tags);})
267 #endif
269 #endif /* !_PPCINLINE_CODESETS_H */