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... > > Closest would be: > > type > record = foo > ba

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

Re: [fpc-pascal] UTF-16 versions of Length, Pos, Delete etc.

2008-07-30 Thread Martin Schreiber
On Wednesday 30 July 2008 09.04:02 Graeme Geldenhuys wrote: > Hi, > > Has anybody already implemented the string utility functions like > Length, Pos, Delete, Copy, Insert etc. that works with UTF-16. I'm not > interested in UCS2 only support, I want full UTF-16 support. > > I'm willing to implemen

[fpc-pascal] UTF-16 versions of Length, Pos, Delete etc.

2008-07-30 Thread Graeme Geldenhuys
Hi, Has anybody already implemented the string utility functions like Length, Pos, Delete, Copy, Insert etc. that works with UTF-16. I'm not interested in UCS2 only support, I want full UTF-16 support. I'm willing to implement those, but why reinvent the wheel when somebody already did it before.