>Guys, > >I've been wanting to relax the dependency that parrot's core has on >parrot_config. As things stand at the moment, src/global_setup.c makes >a call to parrot_get_config which is linked into the executable itself >by selecting either null_config.o, parrot_config.o or >install_config.o. > > Quite a bit of time has passed since I originally set about writing this patch! I've made some more tweaks and wish for it to be considered for inclusion. It can certainly wait until after the next release. Any executable (currently only main.c and pbc_merge.c) which needs the embedded config environment should call Parrot_set_config_hash /before/ creating an Interpreter. This function is contained in *_config.o, and so will also need to be linked with. It shouldn't ever now really be necessary to link with null_config.o, although miniparrot does for technical reasons (the same code is used for miniparrot, parrot and installable_parrot). I am finding that I'm hopeless at coming up with variable and function names, so you won't get any resistance if they are renamed. Cheers, Nick p.s. This patch has changed quite a bit since a version that would core dump. If this does core dump for anyone let me see a backtrace -- I did see one core dump in the thawing calling, so it may be necessary to do something with the garbage collection.Thread Previous | Thread Next