[comp.sys.atari.st] Sozobon compiler

erck15@castle.ed.ac.uk (Kevin "tkld" Davidson) (08/21/89)

Can anyone tell me what the latest version of Sozobon CC is ?
Has hcc been upgraded to accept this sort of construct:

#if defined(MSDROSS) || defined(TOS)

int foo, bar, fred;

#endif

If not I'll have a go at putting it in myself - I'd guess it would have to
work like sizeof(...), and expr.c would replace it with a constant expression
for p_if().

I found stuff like this trying to compile the recently posted nethack 3.0f
on a sun. I have sozobon set up as a cross compiler, but it took me a couple
of days to get rid of most of the assumptions that sizeof(int) == sizeof(short)
(I even managed to find a line `#define short int' in one .h file !)
This *had* to be a deliberate attempt to get back at mainframe programmers
who *always* assume sizeof(int)==sizeof(long) :-)

Howzabout a complete ban of int fields in structures ? :-) :-)
Or get rid of int :-) :-) :-)


Has anyone thought about adding the const and inline storage classes ?
I haven't looked to see how much work this would be (#define inline void
just doesn't satisfy me :-)


I'll do the work if nobody else is interested - looks like fun, but I *hate*
reinventing the wheel (except when the supplied wheel is reeeaaally ugly)

-- 

        .Kevin.        <erck15@castle.ed.ac.uk>
                       <tkld@tardis.cs.ed.ac.uk>