Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Mattias Gärtner
Zitat von Vinzent Höfler <[EMAIL PROTECTED]>: > Mattias Gärtner wrote: > > Zitat von Vinzent Höfler <[EMAIL PROTECTED]>: > > > >> [...] > > a: record end; > >>> Thanks. I will use that. > >> What for? The C statement is empty, it's not a variable and not even a > >> type. So before tran

Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Vinzent Höfler
Mattias Gärtner wrote: Zitat von Vinzent Höfler <[EMAIL PROTECTED]>: [...] a: record end; 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 actual

Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Mattias Gärtner
Zitat von Vinzent Höfler <[EMAIL PROTECTED]>: >[...] > >>> a: record end; > > > > 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 use

Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Vinzent Höfler
Felipe Monteiro de Carvalho wrote: On Wed, Aug 13, 2008 at 7:38 AM, Vinzent Höfler <[EMAIL PROTECTED]> wrote: 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 stru

Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Felipe Monteiro de Carvalho
On Wed, Aug 13, 2008 at 7:38 AM, Vinzent Höfler <[EMAIL PROTECTED]> wrote: > 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. It is us

Re: [fpc-pascal] Translate C to Pascal

2008-08-13 Thread Vinzent Höfler
Mattias Gaertner wrote: On Tue, 12 Aug 2008 09:39:36 +0200 Jilani Khaldi <[EMAIL PROTECTED]> 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 { ... };'

Re: [fpc-pascal] Translate C to Pascal

2008-08-12 Thread Mattias Gaertner
On Tue, 12 Aug 2008 09:39:36 +0200 Jilani Khaldi <[EMAIL PROTECTED]> 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

Re: [fpc-pascal] Translate C to Pascal

2008-08-12 Thread Jilani Khaldi
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. -- Jilani KHALDI -

Re: [fpc-pascal] Translate C to Pascal

2008-08-11 Thread Marc Weustink
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; ? Marc (not a Cist) __

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Damien Gerard
Le Jul 30, 2008 à 10:37 PM, Lourival Mendes a écrit : I would do something like this: C struct product { int weight; float price; } ; product apple; - Pascal Type product = record weight: Integer

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Lourival Mendes
I would do something like this: C struct product { int weight; float price; } ; product apple; - Pascal Type product = record weight: Integer ; price: double; end; Var apple: product

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Jilani Khaldi
Gene Buckle wrote: How to translate this: struct a; a: pointer; -- Jilani KHALDI - http://www.jkhaldi.eu ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Vinzent Höfler
> Datum: Wed, 30 Jul 2008 10:10:09 -0700 (PDT) > Von: Gene Buckle <[EMAIL PROTECTED]> > An: FPC-Pascal users discussions > Betreff: Re: [fpc-pascal] Translate C to Pascal > > How to translate this: > > > > struct a; > > > > > er... &

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Micha Nelissen
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 { ... };' ? Micha ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/ma

Re: [fpc-pascal] Translate C to Pascal

2008-07-30 Thread Gene Buckle
How to translate this: struct a; er... Closest would be: type record = foo bar : integer; end; var a : foo; I _think_. g. -- Proud owner of F-15C 80-0007 http://www.f15sim.com - The only one of its kind. ___ fpc-pascal mail

[fpc-pascal] Translate C to Pascal

2008-07-30 Thread Mattias Gärtner
How to translate this: struct a; Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal