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 Most of the code included in this file was relicensed from GPL to LGPL
20 from the source code of SimpleMail (http://www.sf.net/projects/simplemail)
21 with full permissions by its authors.
25 ***************************************************************************/
27 #if defined(__VBCC__) || defined(NO_INLINE_STDARG)
30 #include <exec/types.h>
32 /* FIX V45 breakage... */
33 #if INCLUDE_VERSION < 45
34 #define MY_CONST_STRPTR CONST_STRPTR
36 #define MY_CONST_STRPTR CONST STRPTR
39 #include <proto/intuition.h>
40 APTR
NewObject( struct IClass
*classPtr
, CONST_STRPTR classID
, Tag tag1
, ... )
41 { return NewObjectA(classPtr
, classID
, (struct TagItem
*)&tag1
); }
42 ULONG
SetAttrs( APTR object
, ULONG tag1
, ... )
43 { return SetAttrsA(object
, (struct TagItem
*)&tag1
); }
45 #include <proto/codesets.h>
46 STRPTR
*CodesetsSupported(Tag tag1
, ...)
47 { return CodesetsSupportedA((struct TagItem
*)&tag1
); }
48 struct codeset
*CodesetsFind(STRPTR name
, Tag tag1
, ...)
49 { return CodesetsFindA(name
, (struct TagItem
*)&tag1
); }
50 struct codeset
*CodesetsFindBest(Tag tag1
, ...)
51 { return CodesetsFindBestA((struct TagItem
*)&tag1
); }
52 STRPTR
CodesetsConvertStr(Tag tag1
, ...)
53 { return CodesetsConvertStrA((struct TagItem
*)&tag1
); }
54 BOOL
CodesetsListDelete(Tag tag1
, ...)
55 { return CodesetsListDeleteA((struct TagItem
*)&tag1
); }
56 STRPTR
CodesetsUTF8ToStr(Tag tag1
, ...)
57 { return CodesetsUTF8ToStrA((struct TagItem
*)&tag1
); }
58 UTF8
*CodesetsUTF8Create(Tag tag1
, ...)
59 { return CodesetsUTF8CreateA((struct TagItem
*)&tag1
); }
60 ULONG
CodesetsDecodeB64(Tag tag1
, ...)
61 { return CodesetsDecodeB64A((struct TagItem
*)&tag1
); }
62 ULONG
CodesetsEncodeB64(Tag tag1
, ...)
63 { return CodesetsEncodeB64A((struct TagItem
*)&tag1
); }
66 #error "VARGS stubs are only save on m68k systems!"