Re: [fpc-pascal] Compiler internals. Changing dynamic arrays format

2022-04-13 Thread Michael Van Canneyt via fpc-pascal
On Wed, 13 Apr 2022, denisgolovan via fpc-pascal wrote: On 2022-04-13 00:34, denisgolovan via fpc-pascal wrote: Your comment about conditional defines goes in the right direction - basically: 1) Separate your changes into parts affecting the compiler behaviour (e.g. the changes

Re: [fpc-pascal] Compiler internals. Changing dynamic arrays format

2022-04-13 Thread denisgolovan via fpc-pascal
> On 2022-04-13 00:34, denisgolovan via fpc-pascal wrote: > Your comment about conditional defines goes in the right direction - > basically: > > 1) Separate your changes into parts affecting the compiler behaviour > (e.g. the changes impacting the compiled structures and code, etc.) from >

Re: [fpc-pascal] Compiler internals. Changing dynamic arrays format

2022-04-13 Thread Tomas Hajny via fpc-pascal
On 2022-04-13 00:34, denisgolovan via fpc-pascal wrote: Hi Denis, I've been maintaining a set of private patches for some quite old FPC revision for some years. . . My first trouble is initialization of dynamic arrays with constant arrays. It looks like simply building one version of

[fpc-pascal] Compiler internals. Changing dynamic arrays format

2022-04-12 Thread denisgolovan via fpc-pascal
Hi all I've been maintaining a set of private patches for some quite old FPC revision for some years. The idea behind those patches to ease interoperation between FPC and LuaJIT FFI by pointer tagging for dynamic arrays. For that to happen I was forced to modify "tdynarray" record (increase its