[comp.sys.atari.st.tech] Bug fix for Sozobon cc.c

ramaer@cs.utwente.nl (Mark Ramaer) (04/02/91)

There is a bug in the compiler driver for Sozobon C which causes it to append
weird non ascii characters to filenames.
See the source file tools\cc.c , function: chsuf()
just before the `return' it sais
	*suf = '\0'
and this should be
	*p = '\0'

Bug2: i am not certain about the fix here,
hcc gives a bus error if you feed it
	struct kdhjvcsjhzgxcv {
		int x:	/* colon instead of semicolon */
	} abc;
or the following illegal C-code:
	f(a)
	int a;
	{
		int xs[] = {a,-a,0};
		do_something(xs);
	}

The first bur error occurs hcc\p2.c , function: conlval()
i changed
	if (nd->e_token == ICON)
into
	if (nd && nd->e_token == ICON)
and now hcc reports "need const expr" which is much more informative :-)

Do the authors read this newsgroup, or does anyone know an e-mail address
where to send the bug report?


Mark Ramaer