From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16231 invoked by alias); 12 May 2003 18:56:48 -0000 Mailing-List: contact guile-gtk-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: guile-gtk-owner@sources.redhat.com Received: (qmail 22805 invoked from network); 12 May 2003 18:33:11 -0000 Received: from unknown (HELO lumo.pacujo.net) (209.77.185.85) by sources.redhat.com with SMTP; 12 May 2003 18:33:11 -0000 Received: (from marko@localhost) by lumo.pacujo.net (8.11.6/8.11.6/SuSE Linux 0.5) id h4CIOuJ29874; Mon, 12 May 2003 11:24:56 -0700 To: guile-gtk@sources.redhat.com Subject: Re: Added a bunch of GDK routines. References: <878ytd5ai8.fsf@zip.com.au> From: Marko Rauhamaa Date: Mon, 12 May 2003 18:56:00 -0000 In-Reply-To: Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-q2/txt/msg00060.txt.bz2 Marko Rauhamaa : > 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/