This is the mail archive of the guile-gtk@sources.redhat.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Added a bunch of GDK routines.


Marko Rauhamaa <marko@pacujo.net>:

> If we call scm_must_malloc (and we should), we scm_done_malloc is not
> necessary during allocation, but you still have to call it with a
> negative size at freeing time.

I remade gdk-support.c independent of xmalloc and started using
scm_must_malloc. guile-gtk.c still uses xmalloc.

	* guile-gtk.h, guile-gtk.c (xmalloc, xrealloc): Make static again.
	* gdk-support.c (gdk_wcstombs_interp): Rely on null-termination.
	* gdk-support.c (gdk_mbstowcs_interp,
	gdk_colormap_alloc_colors_interp): Use scm_must_malloc instead of
	xmalloc.


Marko

-- 
Marko Rauhamaa      mailto:marko@pacujo.net     http://pacujo.net/marko/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]