Re: [fpc-devel] fpc and Delphi packages

2010-01-04 Thread Jonas Maebe
On 04 Jan 2010, at 22:52, Maxim Egorov wrote: > Is fpc 2.4.0 supports something like packages in Delphi? No, it doesn't. Jonas ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

[fpc-devel] fpc and Delphi packages

2010-01-04 Thread Maxim Egorov
Is fpc 2.4.0 supports something like packages in Delphi? ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Stefan Kisdaroczi
Am 04.01.2010 16:13, schrieb Jonas Maebe: > > On 04 Jan 2010, at 14:49, Stefan Kisdaroczi wrote: > >> Thanks for the fast reply. No Problem to work around this one, but >> there are 1788 succ() calls :-o in our applications :-) >> That was the only one that did not compile. All others did compile

Re: [fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Jonas Maebe
On 04 Jan 2010, at 14:49, Stefan Kisdaroczi wrote: Thanks for the fast reply. No Problem to work around this one, but there are 1788 succ() calls :-o in our applications :-) That was the only one that did not compile. All others did compile, but some of them will probably not work. The pro

[fpc-devel] mlockall() unit libc

2010-01-04 Thread Stefan Kisdaroczi
hi all, i need the mlockall() call (unit libc) in my realtime apps on linux i386 to lock the address space of the process. Works, but unit libc has no future and it's the only function i need from this unit. I would like to add this call to another unit (unix? baseunix?). Can I look at the fpmm

Re: [fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Stefan Kisdaroczi
Am 04.01.2010 14:26, schrieb Jonas Maebe: > > On 04 Jan 2010, at 14:07, Stefan Kisdaroczi wrote: > >> 8< >> program divsucc; >> >> begin >> writeln( 256 DIV succ(255) ); >> end. >> 8< >> >> Free Pascal Compiler version 2.4.0 [2009/12/18] for i386 >> Copyright (c) 1993-2009 by

Re: [fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Jonas Maebe
On 04 Jan 2010, at 14:07, Stefan Kisdaroczi wrote: 8< program divsucc; begin writeln( 256 DIV succ(255) ); end. 8< Free Pascal Compiler version 2.4.0 [2009/12/18] for i386 Copyright (c) 1993-2009 by Florian Klaempfl Target OS: Win32 for i386 Compiling divsucc.pas divsucc.

Re: [fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Michael Van Canneyt
On Mon, 4 Jan 2010, Stefan Kisdaroczi wrote: hi list, the code below compiled and worked with fpc 2.2.x. With fpc 2.4.0 compilation fails with "Division by zero". 8< program divsucc; begin writeln( 256 DIV succ(255) ); end. Well, Succ(255) is probably evaluated as a byte, in wh

[fpc-devel] unexpected results with succ() and fpc 2.4.0

2010-01-04 Thread Stefan Kisdaroczi
hi list, the code below compiled and worked with fpc 2.2.x. With fpc 2.4.0 compilation fails with "Division by zero". 8< program divsucc; begin writeln( 256 DIV succ(255) ); end. 8< Free Pascal Compiler version 2.4.0 [2009/12/18] for i386 Copyright (c) 1993-2009 by Florian