[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Mac::WASTE



Quoting Brian McNett <brianmc@telebyte.net>:

> It's going to take me some time to tool up (clear out some space on my 
> Hard Disk, D/L the prerequisite source code, load the old libraries from 
> my Codewarrior 11 disk (I just happened to have this)), etc and so forth. 
>  There may be a long silence before my first update, but I promise to 
> keep the list posted on my progress.
> 
If I may offer a few words of advice. Copy and paste the WASTE public API
into a fresh file, and lay the functions out K&R C style, that is:

return_value
WASTE_func(a, b, c)
    datatype_a a;
    datatype_b b;
    datatype_c c;

This will be your worksheet.

Identify the arguments as IN, OUT, or INOUT (leave the IN's blank if you
like). OUT's and INOUT's will require special treatment - hopefully there
won't be too many of them.

Identify all the complex datatypes that need to be accessed *from* Perl,
either for reading fields or setting fields. These have to be done in
more detail; the others, that are still going to be passed around in Perl,
can be handled as "opaque" pointers.

Once you've got this, you'll have an idea of the scope.

>From a cursory looksee I'd say you're probably going to want to do XS,
particularly as the WASTE headers use Points, Rects, AE things and so
forth, that have already been XS'ed. But don't rule out SWIG until you
develop your skeleton interface (that is, the product of the above).

Happy to help with regards to answering questions.

Arved


---------------------------------------------------------------
 This mail was sent through the Nova Scotia Provincial Server.
 http://nsaccess.ns.ca/mail/ (in development)

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org