home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 4
/
FreshFish_May-June1994.bin
/
bbs
/
cbm
/
os-include.lha
/
os-include
/
inline
/
intuition.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-12-09
|
57KB
|
1,701 lines
#ifndef _INLINE_INTUITION_H
#define _INLINE_INTUITION_H
#include <sys/cdefs.h>
#include <inline/stubs.h>
__BEGIN_DECLS
#ifndef BASE_EXT_DECL
#define BASE_EXT_DECL extern struct IntuitionBase* IntuitionBase;
#endif
#ifndef BASE_PAR_DECL
#define BASE_PAR_DECL
#define BASE_PAR_DECL0 void
#endif
#ifndef BASE_NAME
#define BASE_NAME IntuitionBase
#endif
static __inline BOOL
ActivateGadget (BASE_PAR_DECL struct Gadget *gadgets,struct Window *window,struct Requester *requester)
{
BASE_EXT_DECL
register BOOL _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Gadget *a0 __asm("a0") = gadgets;
register struct Window *a1 __asm("a1") = window;
register struct Requester *a2 __asm("a2") = requester;
__asm __volatile ("jsr a6@(-0x1ce)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (a2)
: "a0","a1","a2","d0","d1", "memory");
return _res;
}
static __inline void
ActivateWindow (BASE_PAR_DECL struct Window *window)
{
BASE_EXT_DECL
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
__asm __volatile ("jsr a6@(-0x1c2)"
: /* no output */
: "r" (a6), "r" (a0)
: "a0","a1","d0","d1", "memory");
}
static __inline void
AddClass (BASE_PAR_DECL struct IClass *classPtr)
{
BASE_EXT_DECL
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct IClass *a0 __asm("a0") = classPtr;
__asm __volatile ("jsr a6@(-0x2ac)"
: /* no output */
: "r" (a6), "r" (a0)
: "a0","a1","d0","d1", "memory");
}
static __inline UWORD
AddGList (BASE_PAR_DECL struct Window *window,struct Gadget *gadget,unsigned long position,long numGad,struct Requester *requester)
{
BASE_EXT_DECL
register UWORD _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register struct Gadget *a1 __asm("a1") = gadget;
register unsigned long d0 __asm("d0") = position;
register long d1 __asm("d1") = numGad;
register struct Requester *a2 __asm("a2") = requester;
__asm __volatile ("jsr a6@(-0x1b6)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (d0), "r" (d1), "r" (a2)
: "a0","a1","a2","d0","d1", "memory");
return _res;
}
static __inline UWORD
AddGadget (BASE_PAR_DECL struct Window *window,struct Gadget *gadget,unsigned long position)
{
BASE_EXT_DECL
register UWORD _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register struct Gadget *a1 __asm("a1") = gadget;
register unsigned long d0 __asm("d0") = position;
__asm __volatile ("jsr a6@(-0x2a)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (d0)
: "a0","a1","d0","d1", "memory");
return _res;
}
static __inline APTR
AllocRemember (BASE_PAR_DECL struct Remember **rememberKey,unsigned long size,unsigned long flags)
{
BASE_EXT_DECL
register APTR _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Remember **a0 __asm("a0") = rememberKey;
register unsigned long d0 __asm("d0") = size;
register unsigned long d1 __asm("d1") = flags;
__asm __volatile ("jsr a6@(-0x18c)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (d0), "r" (d1)
: "a0","a1","d0","d1", "memory");
return _res;
}
static __inline struct ScreenBuffer *
AllocScreenBuffer (BASE_PAR_DECL struct Screen *sc,struct BitMap *bm,unsigned long flags)
{
BASE_EXT_DECL
register struct ScreenBuffer * _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Screen *a0 __asm("a0") = sc;
register struct BitMap *a1 __asm("a1") = bm;
register unsigned long d0 __asm("d0") = flags;
__asm __volatile ("jsr a6@(-0x300)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (d0)
: "a0","a1","d0","d1", "memory");
return _res;
}
static __inline void
AlohaWorkbench (BASE_PAR_DECL long wbport)
{
BASE_EXT_DECL
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register long a0 __asm("a0") = wbport;
__asm __volatile ("jsr a6@(-0x192)"
: /* no output */
: "r" (a6), "r" (a0)
: "a0","a1","d0","d1", "memory");
}
static __inline BOOL
AutoRequest (BASE_PAR_DECL struct Window *window,struct IntuiText *body,struct IntuiText *posText,struct IntuiText *negText,unsigned long pFlag,unsigned long nFlag,unsigned long width,unsigned long height)
{
BASE_EXT_DECL
register BOOL _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register struct IntuiText *a1 __asm("a1") = body;
register struct IntuiText *a2 __asm("a2") = posText;
register struct IntuiText *a3 __asm("a3") = negText;
register unsigned long d0 __asm("d0") = pFlag;
register unsigned long d1 __asm("d1") = nFlag;
register unsigned long d2 __asm("d2") = width;
register unsigned long d3 __asm("d3") = height;
__asm __volatile ("jsr a6@(-0x15c)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (a2), "r" (a3), "r" (d0), "r" (d1), "r" (d2), "r" (d3)
: "a0","a1","a2","a3","d0","d1","d2","d3", "memory");
return _res;
}
static __inline void
BeginRefresh (BASE_PAR_DECL struct Window *window)
{
BASE_EXT_DECL
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
__asm __volatile ("jsr a6@(-0x162)"
: /* no output */
: "r" (a6), "r" (a0)
: "a0","a1","d0","d1", "memory");
}
static __inline struct Window *
BuildEasyRequestArgs (BASE_PAR_DECL struct Window *window,struct EasyStruct *easyStruct,unsigned long idcmp,APTR args)
{
BASE_EXT_DECL
register struct Window * _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register struct EasyStruct *a1 __asm("a1") = easyStruct;
register unsigned long d0 __asm("d0") = idcmp;
register APTR a3 __asm("a3") = args;
__asm __volatile ("jsr a6@(-0x252)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (d0), "r" (a3)
: "a0","a1","a3","d0","d1", "memory");
return _res;
}
static __inline struct Window *
BuildSysRequest (BASE_PAR_DECL struct Window *window,struct IntuiText *body,struct IntuiText *posText,struct IntuiText *negText,unsigned long flags,unsigned long width,unsigned long height)
{
BASE_EXT_DECL
register struct Window * _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register struct IntuiText *a1 __asm("a1") = body;
register struct IntuiText *a2 __asm("a2") = posText;
register struct IntuiText *a3 __asm("a3") = negText;
register unsigned long d0 __asm("d0") = flags;
register unsigned long d1 __asm("d1") = width;
register unsigned long d2 __asm("d2") = height;
__asm __volatile ("jsr a6@(-0x168)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1), "r" (a2), "r" (a3), "r" (d0), "r" (d1), "r" (d2)
: "a0","a1","a2","a3","d0","d1","d2", "memory");
return _res;
}
static __inline ULONG
ChangeScreenBuffer (BASE_PAR_DECL struct Screen *sc,struct ScreenBuffer *sb)
{
BASE_EXT_DECL
register ULONG _res __asm("d0");
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Screen *a0 __asm("a0") = sc;
register struct ScreenBuffer *a1 __asm("a1") = sb;
__asm __volatile ("jsr a6@(-0x30c)"
: "=r" (_res)
: "r" (a6), "r" (a0), "r" (a1)
: "a0","a1","d0","d1", "memory");
return _res;
}
static __inline void
ChangeWindowBox (BASE_PAR_DECL struct Window *window,long left,long top,long width,long height)
{
BASE_EXT_DECL
register struct IntuitionBase* a6 __asm("a6") = BASE_NAME;
register struct Window *a0 __asm("a0") = window;
register long d0 __asm("d0") = left;
register long d1 __asm("d1") = top;
register long d2 __asm("d2") = width;
register long d3 __asm("d3") = height;
__asm __volatile ("jsr a6@(-0x1e6)"
: /* no output */
: "r" (a6), "r" (a0), "r" (d0), "r" (d1), "r" (d2), "r" (d3)
: "a0","a1","d0","d1","d2","d3", "memory");
}
static __inline BOOL
ClearDMRequest (BASE_PAR_DECL struct Window *window)
{
BASE_EXT_DECL
register BOOL _res __asm("d0"