Re: Passing Arrays of Structs to NCI Subs

2004-04-28 Thread chromatic
On Wed, 2004-04-28 at 03:06, Leopold Toetsch wrote: > Not very wrong, but ... Anyway the syntax is: > > Px["Rect"; 0; "x"] # rect[0].x named access of "Rect" > Px[ 0 ; 2; "h"] # rect[2].h idx > > Constructions differs too. > Please have a look at the test. Ahh, that makes sense after s

Re: Passing Arrays of Structs to NCI Subs

2004-04-28 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > No problem. Fair warning, though: nci_test doesn't build by default on > Linux PPC. I had to build it manually then copy it into > runtime/parrot/dynext/. That's the current procedure, yes. I don't know, if all platforms support dynamic loading - probably

Re: Passing Arrays of Structs to NCI Subs

2004-04-27 Thread chromatic
On Tue, 2004-04-20 at 02:13, Leopold Toetsch wrote: > Can you provide some test code (s. t/pmc/nci.t and src/nci_test.c) for > signatures similar to the real: > > extern DECLSPEC void SDLCALL SDL_UpdateRects > > (SDL_Surface *screen, int numrects, SDL_Rect *rects); No problem. F

Re: Passing Arrays of Structs to NCI Subs

2004-04-20 Thread Leopold Toetsch
Chromatic <[EMAIL PROTECTED]> wrote: > What's the secret syntax for passing and retriving arrays of things to > and from NCI? I have this signature: There is no secret syntax: ,--[ docs/pmc/struct.pod ]- |Array Size |The second initiali