This is the mail archive of the
mailing list for the Guile project.
Re: typedef void *
- To: guile at sourceware dot cygnus dot com
- Subject: Re: typedef void *
- From: Marius Vollmer <mvo at zagadka dot ping dot de>
- Date: 07 Mar 2000 23:52:04 +0100
- References: <877lfebe8r.fsf@totally-fudged-out-message-id>
Han-Wen Nienhuys <email@example.com> writes:
> I'm just working on my typedef void *SCM; patch, and some of the stuff
> I find is dubitable:
> unif.c (around line 314):
I think the whole function is busted. Try this:
guile> (array? "huhu")
Program received signal SIGSEGV, Segmentation fault.
scm_iprin1 (exp=1, port=1075141024, pstate=0x80647d0) at print.c:338
338 exp = SCM_CAR (exp - 1);
It tries to print (SCM)1, which doesn't work. In my view , this
function is *very* confused about SCM bools and C bools. Did it ever
> Furthermore, throw.c is puzzling to me. Consider the macro JBACTIVE
> #define JBACTIVE(O) (SCM_CARW (O) & (1L << 16L))
> As far as I can tell, this would cause a core dump (referencing the
Did you notice that the macro parameter is a big-Oh? Thus,
SCM_CARW(O) refers to the macro parameter not to zero.