revert between 56095 -> 55830 in arch
[AROS.git] / workbench / classes / zune / texteditor / mcc / vastubs.c
blob562288e6ace7c65b7ab2060b0c0ae1674c6bc2de
1 /***************************************************************************
3 TextEditor.mcc - Textediting MUI Custom Class
4 Copyright (C) 1997-2000 Allan Odgaard
5 Copyright (C) 2005-2014 TextEditor.mcc 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 TextEditor class Support Site: http://www.sf.net/projects/texteditor-mcc
19 $Id$
21 ***************************************************************************/
23 #if !defined(__AROS__) && (defined(__VBCC__) || defined(NO_INLINE_STDARG))
24 #if defined(_M68000) || defined(__M68000) || defined(__mc68000)
26 #include <exec/types.h>
28 /* FIX V45 breakage... */
29 #if INCLUDE_VERSION < 45
30 #define MY_CONST_STRPTR CONST_STRPTR
31 #else
32 #define MY_CONST_STRPTR CONST STRPTR
33 #endif
35 #include <proto/intuition.h>
37 APTR NewObject( struct IClass *classPtr, CONST_STRPTR classID, Tag tag1, ... )
38 { return NewObjectA(classPtr, classID, (struct TagItem *)&tag1); }
39 ULONG SetAttrs( APTR object, ULONG tag1, ... )
40 { return SetAttrsA(object, (struct TagItem *)&tag1); }
41 void SetWindowPointer( struct Window *win, Tag tag1, ... )
42 { SetWindowPointerA(win, (struct TagItem *)&tag1); }
44 #include <proto/dos.h>
45 LONG SystemTags( CONST_STRPTR command, ULONG tag1type, ... )
46 { return SystemTagList(command, (struct TagItem *)&tag1type); }
47 struct Process *CreateNewProcTags( ULONG tag1, ... )
48 { return CreateNewProc((struct TagItem *)&tag1); }
50 #else
51 #error "VARGS stubs are only save on m68k systems!"
52 #endif
53 #endif