[fpc-pascal] How to translate C macro

2017-01-02 Thread Darius Blaszyk
Hi all, Could someone suggest how to translate the following code to pascal? #define prev(X) ( *( (void **) ( ((void *) (X)) - 32 ) ) ) . prev(ptr) = prev(last); I tried converting the macro to an inline function but I get the error message: Error: Argument cannot be assigned to. The

Re: [fpc-pascal] Question on type helpers

2017-01-02 Thread Bart
On 1/1/17, Bart wrote: > Now I need to check wether the 3.0.2 RC1 does too. > If it is inddeed r33214 that fixed it, I think it is in 3.0 fixes. > We'll see (but not today). Compiles OK with 3.0.2RC1. Bart ___ fpc-pascal

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Mattias Gaertner
On Mon, 2 Jan 2017 05:23:06 + (UTC) Mr Bee wrote: > Hi all, > There's someone accusing that Free Pascal (and some parts of Lazarus) is just > a reverse engineering of Delphi. FPC runs on 80 platforms. Delphi only runs on MS Windows 32/64 and can cross compile to a few

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Marco van de Voort
In our previous episode, Mr Bee said: > There's someone accusing that Free Pascal (and some parts of Lazarus) is just > a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken > from Delphi (and Kylix). This is a serious allegation. > I know that isn't true. Or is it? ;)

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Jürgen Hestermann
Am 2017-01-02 um 06:23 schrieb Mr Bee: > There's someone accusing that Free Pascal (and some parts of Lazarus) is just a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken from Delphi (and Kylix). This is a serious allegation. > I know that isn't true. Or is it? ;) >

Re: [fpc-pascal] Question on type helpers

2017-01-02 Thread Sven Barth
Am 01.01.2017 17:52 schrieb "Bart" : > > On 1/1/17, Sven Barth wrote: > > > Could indeed be the case due to codepaged strings being different types. > > I think there already is a bug report along those lines... > > I just (for the first time

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Santiago A.
El 02/01/2017 a las 6:23, Mr Bee escribió: > Hi all, > > There's someone accusing that Free Pascal (and some parts of Lazarus) > is just a reverse engineering of Delphi. Even he said some codes of > FPC/Laz are taken from Delphi (and Kylix). This is a serious allegation. > > I know that isn't

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Karoly Balogh (Charlie/SGR)
Hi, On Mon, 2 Jan 2017, Santiago A. wrote: > Well, I think it's evident  that Freepascal and lazarus tries to be > delphi compatible, and that means that must look close to delphi to > imitate it's behavior and syntax. > > Is that reverse engineering? Well, I'm not a lawyer, I don't know where >

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread geneb
On Mon, 2 Jan 2017, Mr Bee wrote: Hi all, There's someone accusing that Free Pascal (and some parts of Lazarus) is just a reverse engineering of Delphi. Even he said some codes of FPC/Laz are taken from Delphi (and Kylix). This is a serious allegation. I know that isn't true. Or is it? ;) Can

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Snorkl e
My question is why does this person even care to make such accusations? For one some of the routines in the run time are extremely generic and could easily be written exactly the same way and only way to prove it is if comments made by original coder are still in place. Sounds like a waste of

Re: [fpc-pascal] Question on type helpers

2017-01-02 Thread Bart
On 1/2/17, Sven Barth wrote: > I knew that the problem sounded familiar ;) Even better, I opened that ticket, allbeit on behalve of someone else in the forum (Silvio). >> PS How can I get the "make install" to generate a fpc.cfg file? > > I think we have a

Re: [fpc-pascal] Question on type helpers

2017-01-02 Thread Sven Barth
Am 02.01.2017 15:26 schrieb "Bart" : > >> PS How can I get the "make install" to generate a fpc.cfg file? > > > > I think we have a generator for it in utils or so. I've never used it > > however... > > I just copied the 3.0 config and did a search and replace on the paths.

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Sven Barth
Am 02.01.2017 19:15 schrieb "Santiago A." : > Nevertheless, as someone has pointed, Embarcadero hasn't make any legal movement. Maybe because it thinks there is no legal base; or maybe because it doesn't care that much and thinks it's not worth the bad publicity. Not to

Re: [fpc-pascal] FPC clean room project

2017-01-02 Thread Snorkl e
Maybe it's Niklaus Wirth, could be he's broke and decided it's time to collect license fees like Microsoft does with Android LOL just kidding. On Jan 2, 2017 4:07 PM, "Sven Barth" wrote: Am 02.01.2017 19:15 schrieb "Santiago A." : >

[fpc-pascal] questions on fpimage

2017-01-02 Thread Marc Santhoff
Hi, firstly a happy new year to you all and keep on rocking! While reading the fpimage unit code I found some pieces I don't understand and could not clear up reading the docs. Here we go: TFPCustomImage = class(TPersistent) [...] public [...] property Extra [const key:string] :