GLib RFC: Improve checking provided with --enable-mem-check

Ben Stanley bds02@uow.edu.au
Wed, 06 Jun 2001 17:07:47 +1000


Phillip Shelton wrote:

>I am lost.  How does glib compare with glibc?
>
>>-----Original Message-----
>>From: gnucash-devel-admin@lists.gnumatic.com
>>[mailto:gnucash-devel-admin@lists.gnumatic.com]On Behalf Of 
>>Ben Stanley
>>Sent: Wednesday, June 06, 2001 4:03 PM
>>
>>I have currently only looked at gmem.c in glib-1.2.9. Is 
>>there any more 
>>recent version that I should know about?
>>
>>Ben.
>>
glibc is the GNU implementation of the C library standard, and as such 
provides malloc() and free().

glib is a GNU utility library which is used extensively by gtk, and in 
turn by gnome (and also gnucash). Pretty much all memory allocation in a 
gnome program is done through g_malloc and g_free. glib also provides 
things like hash tables, doubly linked lists, dates, and all that other 
really basic stuff that you need to do any serious programming, which 
libc does not. (Not that I'm advocating glib as being the best way to do 
it!)

Ben.