[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Can't compile the eiffel generated C files
From: |
Lothar Scholz |
Subject: |
Re: [Tinycc-devel] Can't compile the eiffel generated C files |
Date: |
Mon, 1 Aug 2005 00:11:14 +0700 |
Hello tinycc-devel,
>When a function is called using a prototype, the implicit argument
>conversions are done with the same rules as assignment. An assignment
>of a structure pointer requires that the structures be compatible.
>Structure compatibility requires all fields to match. This is
>essentially the same problem as:
>
> struct x { int a; };
> struct y { int a; int b; };
>
> struct x foo;
> struct y * bar;
> bar = &foo; /* cast needed */
>
Sorry but i think this should compile nevertheless as such a case is
well defined by the C-99 standard that it must copy the sizeof(bar)
bytes from foo into bar.
While a cast would be nice, it shouldn't be necessary.
--
Best regards, emailto: scholz at scriptolutions dot com
Lothar Scholz http://www.ruby-ide.com
CTO Scriptolutions Ruby, PHP, Python IDE 's