Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix pre-compilation of modules that use NativeCall.
  • Loading branch information
jnthn committed Apr 5, 2012
1 parent 55fe6c6 commit aabbd0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/6model/reprs/NativeCall.c
Expand Up @@ -95,6 +95,14 @@ static storage_spec get_storage_spec(PARROT_INTERP, STable *st) {
return spec;
}

/* We can't actually serialize the handle, but since this REPR gets inlined
* we just do nothing here since it may well have never been opened. Various
* more involved approaches are possible... */
static void serialize(PARROT_INTERP, STable *st, void *data, SerializationWriter *writer) {
}
static void deserialize(PARROT_INTERP, STable *st, void *data, SerializationReader *reader) {
}

/* Initializes the NativeCall representation. */
REPROps * NativeCall_initialize(PARROT_INTERP,
PMC * (* wrap_object_func_ptr) (PARROT_INTERP, void *obj),
Expand All @@ -112,5 +120,7 @@ REPROps * NativeCall_initialize(PARROT_INTERP,
this_repr->gc_free = gc_free;
this_repr->gc_cleanup = gc_cleanup;
this_repr->get_storage_spec = get_storage_spec;
this_repr->serialize = serialize;
this_repr->deserialize = deserialize;
return this_repr;
}

0 comments on commit aabbd0a

Please sign in to comment.