At 10:17 AM +0100 12/24/03, Leopold Toetsch wrote:
Dan Sugalski <[EMAIL PROTECTED]> wrote:
 I'm pondering, once again, more things with the Postgres interface.
 In this case I need to pass in arrays of ints (and floats, I suppose)
 and arrays of char pointers.

Actually we have that already - or almost. When interfacing with PCRE, I had to access the match results, which happen to be an array of ints. So the UnManagedStruct PMC has an interface to deal with almost arbitrary structures and arrays of types.

Well... almost. In this case it's insufficient.


Its not finished and a bit underdocumented though.

What? No! Say it isn't so! :)


Its currently fine
for reading e.g. an int array coming in from NCI. For setting up such an
array ManagedStruct should be used, but it may lack the proper store
allocation.

Please UTSL :) and "less library/libpcre.imc".

Using the source is only helpful when the docs are sufficient to actually *find* the thing you're thinking of doing, which turns out not to be the case here. (And unfortunately libpcre.imc doesn't do what I need it to either, so either I'm missing something or I've got to deal with this anyway)


It looks like single characters may not be sufficient soon, though, but tha's a separate issue.
--
Dan


--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to