On Friday 21 July 2006 11:43, Leopold Toetsch wrote: > Without futher looking - you have to replace a lot of 'p's (some structure) > with 'J' (the Interpreter* interp structure). E.g. > > .store_nci_func( 'Parrot_readbc', 'ppt' ) > > => > > .store_nci_func( 'Parrot_readbc', 'pJt' )
I'm not convinced; this works just fine from the Perl 5 and Ruby bindings. Most of that code uses the interpreter returned from Parrot_new(), rather than the current interpreter. (It only uses the current interpreter as the parent argument to Parrot_new()). > You migh also grep for enter_nci_method in src/pmc/*.c - all METHODs in > .pmc are converted to NCI calls in the .c files with appropriate > signatures. That ought to work. -- c