This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: typedef struct SCM


jimb@red-bean.com writes:
> 
> > Except that we can't depend on GCC-specific features for guile, since guile
> > is supposed to be written in generic ANSI C.
> 
> Hey, give me a little credit.  The idea was that this typechecking
> would be enabled automatically when __GNUC__ was #defined.  This
> wouldn't help other people, but for them there's no way (I can see) to
> get strict typechecking and good performance.  And it's my sense that

how about 

	struct UNUSED {} ;
	typedef struct UNUSED * SCM;

then only this

     SCM s= 0;

doesn' get caught.

-- 

Han-Wen Nienhuys, hanwen@cs.uu.nl ** GNU LilyPond - The Music Typesetter 
      http://www.cs.uu.nl/people/hanwen/lilypond/index.html 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]