Re: [fpc-pascal] Initializing records and other complicated structures

2010-09-28 Thread Jim
On 27-9-2010 13:30, Sven Barth wrote: > Am 27.09.2010 10:38, schrieb Honza: >> 2010/9/27 Jim: >>> As TIfdTag seems to contain non-pointer records only, I thought I could >>> use Sizeof and tried this: >>> FillByte(tag, SizeOf(tag), 0); //initialize var. >>> The compiler warning doesn't go away thou

Re: [fpc-pascal] RichMemo in shared SO library - relocation error

2010-09-28 Thread Dibo
> You can probably work around the problem for now by going to line 1448 > of compiler/ptconst.pas and changing > > if sym.varspez=vs_const then >cursectype:=sec_rodata > else >cursectype:=sec_data; > > into > > cursectype:=sec_data; Hm, it

Re: [fpc-pascal] Initializing records and other complicated structures

2010-09-28 Thread Jürgen Hestermann
Sven Barth schrieb: It's enough code, because FillByte (and others) are defined with a "var" parameter and such the hint (not a warning) won't go away. It's an old topic already and we have just to live with it (regarding the Fill* functions). ^^ But why not simply change the definition of the

Re: [fpc-pascal] Initializing records and other complicated structures

2010-09-28 Thread Vincent Snijders
2010/9/28 Jürgen Hestermann : > Sven Barth schrieb: >> >> It's enough code, because FillByte (and others) are defined with a "var" >> parameter and such the hint (not a warning) won't go away. >> It's an old topic already and we have just to live with it (regarding the >> Fill* functions). ^^ > > B