public inbox for guile-gtk@sourceware.org
 help / color / mirror / Atom feed
From: Marko Rauhamaa <marko@pacujo.net>
To: guile-gtk@sources.redhat.com
Subject: Re: Added a bunch of GDK routines.
Date: Mon, 12 May 2003 18:56:00 -0000	[thread overview]
Message-ID: <m3fznkm39j.fsf@lumo.pacujo.net> (raw)
In-Reply-To: <m3u1c0m4t7.fsf@lumo.pacujo.net>

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/

  reply	other threads:[~2003-05-12 18:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-02  1:25 Marko Rauhamaa
2003-05-11 23:28 ` Kevin Ryde
2003-05-12 18:06   ` Marko Rauhamaa
2003-05-12 18:56     ` Marko Rauhamaa [this message]
2003-06-06 22:23 ` GdkWChar (was: Added a bunch of GDK routines.) Kevin Ryde
2003-06-14 23:58 ` gdk-gc-copy comments " Kevin Ryde
2003-06-20 23:54 ` sgtk_timestamp returns " Kevin Ryde

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3fznkm39j.fsf@lumo.pacujo.net \
    --to=marko@pacujo.net \
    --cc=guile-gtk@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).