lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lightning] jit_state _jit, re-entrancy


From: Sandro Magi
Subject: Re: [Lightning] jit_state _jit, re-entrancy
Date: Sun, 9 Dec 2007 22:48:36 -0500

Got it. Although I will probably declare:

#define _jit (*_jitp)

global to the source file instead of within the function body. Looking
at the source, this may require me to call jit_init to allocate the
jit_state structure, but I don't see where that is defined.

Sandro

On Dec 6, 2007 1:10 AM, Paolo Bonzini <address@hidden> wrote:
>
> > void code_add_instr(jit_state _jit, ...) {
> >    /* use jit_* functions which will reference the _jit local variable */
> > }
>
> Almost:
>
> void code_add_instr(jit_state *_jitp, ...) {
> #define _jit (*_jitp)
>    /* use jit_* functions which will reference the _jit macro */
> #undef _jit
> }
>
>
> Paolo
>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]