Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / popupmenu / pmrexx.c
blob7fd598af9122adb45d80fb1d0b28fcac7cf3bba8
1 //
2 // popupmenu.library - ARexx Interface
3 //
5 #include "pmpriv.h"
7 #include <rexx/errors.h>
8 #include <rexx/rexxio.h>
9 #include <rexx/storage.h>
10 #include <proto/rexxsyslib.h>
12 extern char *version;
14 struct RexxReturnValues {
15 ULONG d0;
16 UBYTE *a0;
19 #define rxreturn(x, y) { rxret=AllocVec(sizeof(struct RexxReturnValues), 0);\
20 if(!rxret) { return 0L; }\
21 rxret->d0=x; rxret->a0=y;\
22 return rxret;\
25 __asm ULONG a0hack(register __d0 ULONG return1, register __a0 UBYTE *return2)
27 /* lame hack to return an argstring in A0 as arexx expects */
28 return(return1);
31 __asm __saveds ULONG PM_RexxHost(register __a0 struct RexxMsg *rxmsg)
33 UBYTE *argstr;
34 STRPTR resstr;
35 struct RexxReturnValues *rxret;
37 rxreturn(ERR10_010, 0L); /* invalid message packet */