From: Marius Vollmer <mvo@zagadka.ping.de>
To: Ariel Rios <ariel@arcavia.com>
Cc: guile-gtk@sourceware.cygnus.com
Subject: Re: Constant strings in guile-gtk...
Date: Sun, 28 Jan 2001 10:35:00 -0000 [thread overview]
Message-ID: <87puh71qaw.fsf@zagadka.ping.de> (raw)
In-Reply-To: <Pine.LNX.4.10.10101211504220.4734-100000@soleil.gnome.org>
Ariel Rios <ariel@arcavia.com> writes:
> Hi,
> I have been wondering that guile-gtk might need
> to handle const char* since a lot of of
> GNOME code is now declaring things like that...
I think you want to use
(register-type
'cstring
(make-type "cstring" "const char*"
(lambda (x)
(@@ "(SCM_NIMP(~a) && SCM_ROSTRINGP(~a))" x x))
(lambda (x)
(@@ "((~a) == SCM_BOOL_F? NULL : SCM_CHARS(~a))" x x))
(lambda (x copy)
(@@ "(~a == NULL? SCM_BOOL_F : scm_take0str (~a))" x x))
'fit-for-list #t
'conversion "sgtk_string_conversion"))
prev parent reply other threads:[~2001-01-28 10:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-21 13:03 Ariel Rios
2001-01-28 10:35 ` Marius Vollmer [this message]
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=87puh71qaw.fsf@zagadka.ping.de \
--to=mvo@zagadka.ping.de \
--cc=ariel@arcavia.com \
--cc=guile-gtk@sourceware.cygnus.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).