Re: [Wormux-dev] Constify some members in Action

2007-06-17 Par sujet Kurosu
oznog a écrit : > Well I can see a malloc but not a free, Is that normal ? For the record, my reply over IRC: I'm not changing the logic, the malloc had always been there. Probably Network is free'ing it. Kurosu ___ Wormux-dev mailing list Wormux-dev

Re: [Wormux-dev] Constify some members in Action

2007-06-16 Par sujet oznog
Le Sat, 16 Jun 2007 20:43:40 +0200, Kurosu <[EMAIL PROTECTED]> a écrit : > Kurosu a écrit : > [...] > > And once again, patch swallowed by the mailing list. Please find that > patch here: > http://kurosu.free.fr/action.diff > Well I can see a malloc but not a free, Is that normal ? -- QFDQF __

Re: [Wormux-dev] Constify some members in Action

2007-06-16 Par sujet Kurosu
Kurosu a écrit : [...] And once again, patch swallowed by the mailing list. Please find that patch here: http://kurosu.free.fr/action.diff Kurosu ___ Wormux-dev mailing list Wormux-dev@gna.org https://mail.gna.org/listinfo/wormux-dev

[Wormux-dev] Constify some members in Action

2007-06-16 Par sujet Kurosu
Hello, I'm not sure if the compiler would really make a copy of the object when those functions are called, but as the Action objects can be const when used these members are used, a small optimization was possible. I also added newer functions (getting the packet size, and writing to an already