[Coco] Re: C compiler source code
Albert Stinger
albertstinger24 at canada.com
Tue Mar 15 10:24:31 EST 2005
There is a file on RTSI named "ANSI.lzh" and it contains
a file named 'ansi.c' this looks like what your looking for.
This is a description of what the compiled ansi.c file can
do:
Description:
==========
This program alters function definitions to convert non-ANSI C code to
ANSI form. The -k and -p flags allow conversion from ANSI to K&R and
generation of prototypes respectively.
There are two *minor* problems:
In generation of prototypes. If a function has been defined with no
explicit type it defaults to being int. Strictly the prototype should
explicitly state this is int, but doesn't.
If a conversion actually occurs (either to or from ANSI) any comments
which were in the definition will be lost.
The only restriction (that I can think of!) on the code being processed
is that a function definition must be the first thing on a line.
i.e. if a comment is placed on the same line as the definition but before
it, the program will think the whole line is a comment.
Albert Stinger
"Stephen H. Fischer" <SFischer1 at MindSpring.com>
wrote in message news:007301c5293a$c935dec0$0100a8c0 at bosie...
> Hi,
>
> KnudsenMJ at aol.com wrote:
>> In a message dated 3/14/05 9:12:40 PM Eastern Standard Time,
>> mannslists at invigorated.org writes:
>>
>>> The last version I've been able to find of ANSIFRONT was version 0.12.
>>> (On One other question, would it be possible to, or has it already been
>>> ported over to Linux / Windoze? I develop under Linux, and something
>>> like that would help me get back on the band wagon with Coco
>>> development.
>>
>>
>>
>> Pretty sure the ANSIFRONT source is in C. SInce it just uses stdin and
>> stdout, it should compile right nicely under any C.
>>
>> --Mike K.
>
> The source was promised but appearently was never made available. At least
> in all the places I have looked.
>
> I remember suggesting that the author be asked for it as he was planning
> to go to one last CoCo Fest. Several years ago.
>
> --
> Stephen H. Fischer
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
>
More information about the Coco
mailing list