[fpc-pascal] Translate C to Pascal

Vinzent Höfler JeLlyFish.software at gmx.net
Wed Aug 13 12:38:51 CEST 2008


Mattias Gaertner wrote:
> On Tue, 12 Aug 2008 09:39:36 +0200
> Jilani Khaldi <jilani at cheapnet.it> wrote:
> 
>> Marc Weustink wrote:
>>> Micha Nelissen wrote:
>>>> Mattias Gärtner wrote:
>>>>> How to translate this:
>>>>>
>>>>> struct a;
>>>> Isn't this a forward declaration? So sometime later it needs to
>>>> declare 'struct a { ... };' ?
>>> If not, can't it be translated as:
>>>
>>>   a: record end;
>>>
>>> ?
>> Yes, it can.
> 
> Thanks. I will use that.

What for? The C statement is empty, it's not a variable and not even a 
type. So before translating that into an empty Pascal-record, you should 
rather look at what the actually used structur in the C-code is.


Vinzent.



More information about the fpc-pascal mailing list