Re: Release 2.2 beta#1 of SmartEiffel is available.

Eric Bezault <[email protected]>
Newsgroups gmane.comp.lang.eiffel.smalleiffel
Organization Gobo
Message-ID <[email protected]>
Colnet Dominique wrote:
> Yes, the work is just going on ;-)

The bootstrap does not work under Windows with 'cl'.
The C compile complains:

   'FILE': illegal use of this type as an expression

This is in germ/compile_to_c2.c:

~~~~~~~~~
void io_copy(char*source, char*target) {
   static char *buffer = NULL;
   int read_count;

   if(!buffer)
     buffer = malloc(IO_COPY_BUFSIZE);

-->  FILE*src=fopen(source, "rb");
   FILE*tgt=fopen(target, "wb");
   while (read_count = fread(buffer, 1, IO_COPY_BUFSIZE, src))
     fwrite(buffer, 1, read_count, tgt);
   fclose(src);
   fclose(tgt);
}
~~~~~~~~~

Moving the if-statement after the two FILE declarations
solved the problem, but I then have a similar problem
with the generated C code of programs compiled with this
new compiler.

-- 
Eric Bezault
mailto:[email protected]
http://www.gobosoft.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.