lucy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marvin Humphrey <mar...@rectangular.com>
Subject Re: [lucy-dev] Hiding struct defs
Date Sun, 25 Mar 2012 19:22:46 GMT
On Sun, Mar 25, 2012 at 12:16 PM, Nick Wellnhofer <wellnhofer@aevum.de> wrote:
> It's not the extensions that need the struct definitions, it's the code in
> parcel.c:
>
> /* Define the variable which holds this class's class name.
>  */
>
> static cfish_ZombieCharBuf LUCY_QUERY_CLASS_NAME = {
>    CFISH_ZOMBIECHARBUF,
>    {1}, /* ref.count */
>    "Lucy::Search::Query",
>    19,
>    0
> };
>
> When building Lucy, CharBuf and VTable are automatically included with
> struct definitions. But in extensions this is not the case.

Got it.

I believe that the solution is to define VTables using a bootstrapping
function at startup rather than define them statically at compile-time.

Marvin Humphrey

Mime
View raw message