2 // popupmenu.library - ARexx Interface
7 #include <rexx/errors.h>
8 #include <rexx/rexxio.h>
9 #include <rexx/storage.h>
10 #include <proto/rexxsyslib.h>
14 struct RexxReturnValues
{
19 #define rxreturn(x, y) { rxret=AllocVec(sizeof(struct RexxReturnValues), 0);\
20 if(!rxret) { return 0L; }\
21 rxret->d0=x; rxret->a0=y;\
25 __asm ULONG
a0hack(register __d0 ULONG return1
, register __a0 UBYTE
*return2
)
27 /* lame hack to return an argstring in A0 as arexx expects */
31 __asm __saveds ULONG
PM_RexxHost(register __a0
struct RexxMsg
*rxmsg
)
35 struct RexxReturnValues
*rxret
;
37 rxreturn(ERR10_010
, 0L); /* invalid message packet */