Re: [pcre-dev] A native pcre exec for JIT

Góra strony
Delete this message
Autor: Giuseppe D'Angelo
Data:  
Dla: pcre-dev
Temat: Re: [pcre-dev] A native pcre exec for JIT
On 30 September 2012 17:20, Philip Hazel <ph10@???> wrote:
>
> (or the structure is obtained some other way ... it could be the stack,
> for example)


It would probably be the best to use opaque pointers. This way, you
can change its memory layout at any time (f.i. adding new fields)
without breaking ABI compatibility and without having to allocate
extra memory in a (opaque?) pointer inside the pcre_context structure.
One could either request one to be allocated by PCRE, or invoke a PCRE
function to know the size in bytes of the structure, size to be passed
to malloc or a custom allocation routine.

Cheers,
--
Giuseppe D'Angelo