[fpc-pascal] Re: GetAffinity\SetAffinity

2013-11-17 Thread Brian
Request for additional info : do_Syscall(syscall_nr_sched_setaffinity,fpgetpid,setsize,@cpu_set); The function do_SysCall() Arg 4 expects longint not a pointer but even when typecast do_SysyCall() doesn't appear to work. ... a good description here. http://www.ibm.com/developerworks/linux/

[fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread Reinier Olislagers
Trying to build 2.6 fixes on x86 with fpcup, Windows, starting with fpc2.6.2 compiler; I get: classes.inc(136,11) Warning: Symbol "Resume" is deprecated C:/development/fpcbootstrap/ppc386.exe -Ur -Xs -O2 -n -Fi../inc -Fi../i386 -Fi../win -FE. -FUC:/development/fpc263/rtl/units/i386-win32 -di386 -dR

Re: [fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread Florian Klämpfl
Am 17.11.2013 18:03, schrieb Reinier Olislagers: > Trying to build 2.6 fixes on x86 with fpcup, Windows, starting with > fpc2.6.2 compiler; I get: > classes.inc(136,11) Warning: Symbol "Resume" is deprecated > C:/development/fpcbootstrap/ppc386.exe -Ur -Xs -O2 -n -Fi../inc > -Fi../i386 -Fi../win -F

Re: [fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread Marco van de Voort
In our previous episode, Reinier Olislagers said: > Trying to build 2.6 fixes on x86 with fpcup, Windows, starting with > fpc2.6.2 compiler; I get: > classes.inc(136,11) Warning: Symbol "Resume" is deprecated > C:/development/fpcbootstrap/ppc386.exe -Ur -Xs -O2 -n -Fi../inc > -Fi../i386 -Fi../win -

Re: [fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread Reinier Olislagers
On 17/11/2013 18:38, Marco van de Voort wrote: > In our previous episode, Reinier Olislagers said: >> Trying to build 2.6 fixes on x86 with fpcup, Windows, starting with >> fpc2.6.2 compiler; I get: >> classes.inc(136,11) Warning: Symbol "Resume" is deprecated >> C:/development/fpcbootstrap/ppc386.

Re: [fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread waldo kitty
On 11/17/2013 12:41 PM, Reinier Olislagers wrote: On 17/11/2013 18:38, Marco van de Voort wrote: In our previous episode, Reinier Olislagers said: [...] Is it me, fpcup or should something be fixed in... ehrm fixes?[1] I noticed the Jenkins build server seems to build fixes ok... IIRC this m

[fpc-pascal] optionally uses a unit

2013-11-17 Thread Xiangrong Fang
Hi All, Is it possible to optionally use a unit? e.g. unit myunit; uses {$ifexists persist.pas}persist,{$endif} Classes; type TMyClass = class public {$ifexists persist.pas} procedure SaveToStream(s: TStream); {$endif} end; Thanks, Xiangrong ___

Re: [fpc-pascal] optionally uses a unit

2013-11-17 Thread Dmitry Boyarintsev
Looks horrible. I thought that's why class-helpers were introduced? But I'd go with a function. thanks, Dmitry On Mon, Nov 18, 2013 at 1:38 AM, Xiangrong Fang wrote: > Hi All, > > Is it possible to optionally use a unit? e.g. > > unit myunit; > uses {$ifexists persist.pas}persist,{$endif} Clas

Re: [fpc-pascal] Problem building fixes_2_6

2013-11-17 Thread Reinier Olislagers
On 18/11/2013 00:48, waldo kitty wrote: > On 11/17/2013 12:41 PM, Reinier Olislagers wrote: >> On 17/11/2013 18:38, Marco van de Voort wrote: >>> In our previous episode, Reinier Olislagers said: > [...] Is it me, fpcup or should something be fixed in... ehrm fixes?[1] I noticed the Jenki