Re: [gtk-list] glib overiding default memory allocator




shane <shane@get.topica.com> writes:
> Hi, I've been using glib for a little while now and I've been wanting to
> integrate a small feature into the library iself.  At least submit it
> for a possible patch.
> 
> What I want to do is be able to override the functions to g_malloc,
> g_malloc0, g_realloc, and g_free.
> 
> I've written a very simple memory leak detectory using the __LINE__ and
> __FILE__ macros that allows one to detect a set of common memory
> problems, leaks, double frees, free/realloc on unititalized pointer.
> 
> Trouble is, I've never actually developed on opensource and need to know
> where to begin in regards to the whole open source development process.
> I can easily go modify my copy of glib, but I want to try to get my
> changes back to the community if possible and if they fit into the
> general direction of glib.
> 

Create a patch with "cvs diff -u" against the 1.3 unstable version of
glib in CVS, and send it along with a rationale for your changes to
gtk-devel-list.

Havoc



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]