On 12/29/06, seventh guardian <[EMAIL PROTECTED]> wrote:
On 12/29/06, seventh guardian <[EMAIL PROTECTED]> wrote: > On 12/29/06, Dominik Vogt <[EMAIL PROTECTED]> wrote: > > On Fri, Dec 29, 2006 at 02:42:16PM +0000, seventh guardian wrote: > > > > > > OOPS it's not safe yet. There's a segmentation fault right in the > > > beggining..... I'll try to find it. > > > > For such a dangerous change it would be good if you could split > > the diffs into a series of self-contained patches that add/change > > some of the functionality. It would help to proof read the > > changes. > > You're right. > > First, we are not dealing with module numbers, but pointers to a type > fmodule. So execcontext.c/h needed changing. Here's the patch.Now that we have the context dealing mechanism ready, it's time to change the module_interface header, replacing all the arrays by the linked list, and all "int module" by "fmodule *module". Note that I've also created a helper function (countModules) to count the modules in the list. For now it is useful for debug. Patch to module_interface.h on annex..
So now comes the coding part. I'll avoid going directly to the big beast, module_interface.c. Instead, supposing it is working correctly, here go the changes to the files using its functions: events.c, modconf.c and stack.c Cheers Renato
events.c.patch
Description: Binary data
modconf.c.patch
Description: Binary data
stack.c.patch
Description: Binary data