From: Marius Vollmer <mvo@zagadka.de>
Cc: djurfeldt@nada.kth.se, guile-devel <guile-devel@gnu.org>
Subject: Re: Critical section review
Date: Wed, 23 Mar 2005 22:34:56 +0100 [thread overview]
Message-ID: <87acou11xb.fsf@zagadka.de> (raw)
In-Reply-To: <4241CF4A.8070906@ossau.uklinux.net> (Neil Jerram's message of "Wed, 23 Mar 2005 20:19:22 +0000")
Neil Jerram <neil@ossau.uklinux.net> writes:
> Thanks. So this is now just:
> SCM_RETURN_NEWSMOB (scm_tc16_memoized, scm_cons (exp, env));
>
> which is a completely mechanical change except that one
> SCM_UNPACK(...) has become ((scm_t_bits) ...) - is the definition of
> SCM_NEWSMOB correct in using (scm_t_bits) rather than SCM_UNPACK ?
The definition of SCM_NEWSMOB is correct; its prototype is
SCM SCM_NEWSMOB (scm_t_bits tag, scm_t_bits data);
However, if you want to use a SCM value as the data of a smob, you
need to use SCM_UNPACK to convert that SCM into a scm_t_bits:
SCM_RETURN_NEWSMOB (scm_tc16_memoized, SCM_UNPACK (scm_cons (exp, env)));
--
GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405
_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel
next prev parent reply other threads:[~2005-03-23 21:34 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-23 8:16 Critical section review Neil Jerram
2005-03-23 8:58 ` Mikael Djurfeldt
2005-03-23 9:02 ` Mikael Djurfeldt
2005-03-23 20:19 ` Neil Jerram
2005-03-23 20:35 ` Mikael Djurfeldt
2005-03-23 21:34 ` Marius Vollmer [this message]
2005-03-24 7:30 ` Neil Jerram
2005-03-30 18:46 ` Neil Jerram
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87acou11xb.fsf@zagadka.de \
--to=mvo@zagadka.de \
--cc=djurfeldt@nada.kth.se \
--cc=guile-devel@gnu.org \
/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).