Re: [fpc-pascal] Type helper for JNI pointers

2018-08-26 Thread Benito van der Zander
Hi, I haven't used type helpers but why not change to defines like type   jObjectRec = record end;   jObject= ^jObjectRec;   jClassRec = record end;   jClass = ^jClassRec; or possibly simpler you could try   jclass = type(jobject); // I believe this forces a new type and is not just an alias

Re: [fpc-pascal] Branch table

2018-08-26 Thread Florian Klämpfl
Am 26.08.2018 um 11:43 schrieb Giuliano Colla: > Il 23/08/2018 11:34, Marco Borsari via fpc-pascal ha scritto: > >> It would be for the Wirth optimization in the access of an array, >> when the index is 0 or 1, allowing the elimination of a multiplication. > > I'm afraid that this sort of optimiz

Re: [fpc-pascal] No breakpoint capability

2018-08-26 Thread Christo
On Sat, 2018-08-25 at 10:56 -0400, john youngquist wrote: > I updated to FPC 3.0.4 and can't get breakpoints to work. > > I get a "can't set breakpoint message" on all lines. > > I am in debug mode and have "generate debug information" enabled. > > This all worked fine in the previous version. I

Re: [fpc-pascal] Branch table

2018-08-26 Thread Giuliano Colla
Il 23/08/2018 11:34, Marco Borsari via fpc-pascal ha scritto: It would be for the Wirth optimization in the access of an array, when the index is 0 or 1, allowing the elimination of a multiplication. I'm afraid that this sort of optimization is rather outdat