unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Marius Vollmer <mvo@zagadka.de>
Cc: jantien@xs4all.nl, guile-devel@gnu.org
Subject: Re: stumped by scm_car/scm_cdr
Date: Thu, 07 Oct 2004 23:55:33 +0200	[thread overview]
Message-ID: <87is9mxkfe.fsf@zagadka.ping.de> (raw)
In-Reply-To: <16741.37002.668216.221013@byrd.xs4all.nl> (Han-Wen Nienhuys's message of "Thu, 7 Oct 2004 20:52:58 +0200")

Han-Wen Nienhuys <hanwen@xs4all.nl> writes:

> for the record, these fishy places were mostly in GC mark functions,
> where I did
>
>   smobbed_type * p = (smobbed_type*) SCM_CDR(scm) 

Ahh yes, this can not be replaced with scm_cdr.  The Right Thing to
use here is SCM_SMOB_DATA as in

    smobbed_type * p = (smobbed_type*) SCM_SMOB_DATA (scm);

The manual should make this clear now.

-- 
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


  reply	other threads:[~2004-10-07 21:55 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-24 23:29 stumped by scm_car/scm_cdr Han-Wen Nienhuys
2004-09-25 15:54 ` Marius Vollmer
2004-09-25 23:19   ` Han-Wen Nienhuys
2004-09-29 15:37     ` Marius Vollmer
2004-10-06 23:44       ` Han-Wen Nienhuys
2004-10-07 18:52         ` Han-Wen Nienhuys
2004-10-07 21:55           ` Marius Vollmer [this message]
2004-10-07 22:12         ` Marius Vollmer
2004-10-07 22:51           ` Han-Wen Nienhuys
2004-10-07 23:41             ` Han-Wen Nienhuys
2004-10-18 17:47             ` Marius Vollmer
2004-10-24 12:25               ` Han-Wen Nienhuys
2004-11-04 16:49                 ` Marius Vollmer
2004-11-08  6:48           ` Dirk Herrmann

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=87is9mxkfe.fsf@zagadka.ping.de \
    --to=mvo@zagadka.de \
    --cc=guile-devel@gnu.org \
    --cc=jantien@xs4all.nl \
    /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).