At 9:47 PM +0000 12/11/03, Harry Jackson wrote:
Dan Sugalski wrote:
Yep, though that's a big part of it. postgres.pasm is generated from postgres.declarations, FWIW--there's a script in the library somewhere.

Is /parrot/build_tools/build_nativecall.pl the script in question and if so whats its usage.

It's util/ncidef2pasm.pl, actually. build_nativecall builds the stub routines for the interpreter if a JIT isn't available. The definitions of the characters are the same, but ncidef2pasm's a bit better documented. (There's embedded POD) Invocation is:


util/ncidef2pasm.pl definition_file output.pasm


I have done postgres.declarations, please see below.

Woo! And, might I add, hoo! :) Thanks.


Revision 1.100

Gah. Good indication that it's time to get the metadata for library versioning in place.


#extern void PQreset(PGconn *conn);
# This was set to "c PQreset p" was this correct.
v PQreset p

Yours is right. (I expect it was a typo on my part, unless Postgres' interface changed, which is really unlikely)


# Need function pointers. Can't do that yet
##### New IN 7.4
#i PQsetNoticeReceiver p p
#####
# i PQsetNoticeProcessor p p

I think, oddly enough, that we can actually do these, but I'm not sure it can be done with the nci interface as it currently stands. The callback function can be an entry to the interpreter runops loop and the parameter the pointer to the closure to execute, but I'm not sure how to express that one properly at the moment.


# The following functions are missing from the original 7.3 version
# so I am leaving these as well. I am including the declarations here
# to let people know the ommission was deliberate. Not 100% why
# though ;-)

Because of the FILE * argument. I didn't have a good way at the time to get one,so I left the functions out. They're just debugging/convenience functions, so I was fine with that one.


Looks really good, though. Thanks heaps -- now it's on to higher-level stuff! :)
--
Dan


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

Reply via email to