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

Re: compiling es



First things first:

Thanks and kudos to Paul && Byron for a downright excellent piece
of software artistry.  A masterpiece!  I love it! Congratulations!

Now, to the business at hand...,  

I just moments ago got es compiled on "my" Apollos, although not without 
a little work.  To keep it short, the compiler complains madly about 
multiple declarations of some static variables (xxxxxxTag).  A little 
reordering cured that, and all seems to be OK so far. I don't know if this 
is Domain CC being picky [or gcc being generous ?], and I don't have a 
copy of K&R (Original Recipe or ANSI) handy, so I'll defer judgement to 
those more wisdomly than I...  There's a sample of what I did at the end.

Other changes I had to make centered around the compilers unwillingness
to concatinate strings. I wrote a new mkinitial, and fiddled with main.c
to accomodate this.

There were two other changes I had to make besides these, but they are 
definately due to the compiler not groking valid code, so no one but 
me needs to know, right?

BTW, if anyone wants them, I can box up a set of context diffs and mail 'em.  
Just drop me a note.

Well, off to explore... :-)

------------ illustration, sort of  -----------------
Old:
	/*
	 * Closure garbage collection support
	 */

	static Tag ClosureTag;

	extern Closure *mkclosure(Tree *tree, Binding *binding) {
	/*
	 * stuff...
	 */

	static DefineTag(Closure);

/* Domain CC didn't like this */

Hacked:

	/*
	 * Closure garbage collection support
	 */

	static void *ClosureCopy(void *);
	static size_t ClosureScan(void *);

	static DefineTag(Closure);
	
	extern Closure *mkclosure(Tree *tree, Binding *binding) {
	/*
	 * stuff...
	 */


---
Steven Rezsutek					steve@endgame.gsfc.nasa.gov
Nyma / NASA Goddard Space Flight Center, 
Greenbelt MD 					301 286 7014