[fpc-pascal] alignment of types ( __alignof__ in fpc)

2017-01-11 Thread Dmitry Boyarintsev
Hello, Porting some C-headers. Ran, into a declaration: #define _K_SS_ALIGNSIZE (__alignof__ (struct sockaddr *)) _alignof_ seems to be a compiler attribute https://gcc.gnu.org/onlinedocs/gcc/Alignment.html Is there anything similar available fpc? Delphi doesn't seem to have any http://stackov

Re: [fpc-pascal] ppcjvm issues

2017-01-11 Thread Jon Foster
On 01/11/2017 02:25 AM, Sven Barth wrote: Am 11.01.2017 08:54 schrieb "Michael Schnell" >: > > On 10.01.2017 05:13, Jon Foster wrote: >> >> On 01/07/2017 10:39 AM, leledumbo wrote: >> >> So that leaves me with the question: What about destructors? Must I call free/de

Re: [fpc-pascal] ppcjvm issues

2017-01-11 Thread Sven Barth
Am 11.01.2017 08:54 schrieb "Michael Schnell" : > > On 10.01.2017 05:13, Jon Foster wrote: >> >> On 01/07/2017 10:39 AM, leledumbo wrote: >> >> So that leaves me with the question: What about destructors? Must I call free/destroy on all objects I create, or do they self-destruct? If so destroy or f

[fpc-pascal] Dynamic arrays in LLDB

2017-01-11 Thread Ingemar Ragnemalm
I am trying to debug an FPC program that uses dynamic arrays. (Don't them all?) It seems to me as if LLDB can not handle them. I get this error: A1 is a dynamic array of Integers (SmallInt). (lldb) p A1 (ARR1) $7 = 0x000b5048 (lldb) p *A1 error: incomplete type 'SMALLINT []' where a complete