[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: stumped by scm_car/scm_cdr

From: Marius Vollmer
Subject: Re: stumped by scm_car/scm_cdr
Date: Thu, 07 Oct 2004 23:55:33 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Han-Wen Nienhuys <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]