/**********************************************************************/ /* Test.c used to test RexecuteIF.c */ /*--------------------------------------------------------------------*/ /* 13 Jun 1994 */ /*--------------------------------------------------------------------*/ /**********************************************************************/ #include #include #include "RexecuteSupport.h" extern __chip char Marquis; // This is important! /**********************************************************************/ /* Sorry there aint a lot to this little demo, but I'm a lazy sod, I */ /* rely on the auto-initialising of the libraries, and a VAST include */ /* file, (Can't be bothered figurin' out what I need to include so it */ /* tends to be almost everything!!) I may be lazy, But at least I'm */ /* HONEST */ /**********************************************************************/ void main(int argc,char *argv[]) { if(SendMacro( &Marquis, "Test Prog", FALSE, NULL )) printf("finished sending\n"); else printf("Unable to start Macro\n"); cleanup(); // NOT required as macro was syncronous // but here for completeness! } /**********************************************************************/ /* You could simply Write it out to a file first, by using something */ /* like: */ /* Write(outfile, &Marquis, Marquislen) */ /* Marquislen is defined within the ArCo object module and should */ /* be declared similar to char Marquis but as the following */ /* extern __chip long Marquislen */ /* You could then call on RX to execute it, But thats REAL LAZY! */ /**********************************************************************/