Re: [cc65] Calling another program: exec() ?

From: Oliver Schmidt <ol.sc1web.de>
Date: 2011-01-25 10:52:31
Hi,

>> The last statement of the code isn't an RTS but a indirect JMP. The
>> location for the JMP is exported so "everybody" can patch it's own
>> handler in there. The default handler is just an RTS.
>
> Yes, good idea.

:-) So the "only" thing missing is someone implementing it on the CBMs...

>        int exec (const char* program, const char* cmdline);

That's exactly what I thought too. As far as I can see there's just no
point in an interface with individual arguments.

Technically the function could be as well typed 'void' - if it returns
than it's already clear that there was an error ;-)

> Not sure in which header file it should go. POSIX systems have
> the exec() family of functions in unistd.h.

If you have no issue with a non-standard function in a standard header
than this would be the place to go...

Still I'm somewhat unclear if we have a policy here: I.e. videomode()
is present in two target header files....

Regards,
Oliver
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Jan 25 10:52:48 2011

This archive was generated by hypermail 2.1.8 : 2011-01-25 10:52:50 CET