Permalink
Browse files

Update P6bigint REPR to use typedef types for wrap_object and create_…

…stable.
  • Loading branch information...
1 parent f30dabb commit a2a20b624eb1c25ed851a01d281eb2b2ed8ffff1 @arnsholt arnsholt committed Jul 23, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/6model/reprs/P6bigint.c
View
8 src/6model/reprs/P6bigint.c
@@ -11,8 +11,8 @@
static REPROps *this_repr;
/* Some functions we have to get references to. */
-static PMC * (* wrap_object_func) (PARROT_INTERP, void *obj);
-static PMC * (* create_stable_func) (PARROT_INTERP, REPROps *REPR, PMC *HOW);
+static wrap_object_t wrap_object_func;
+static create_stable_t create_stable_func;
/* Creates a new type object of this representation, and associates it with
* the given HOW. */
@@ -167,8 +167,8 @@ static void deserialize(PARROT_INTERP, STable *st, void *data, SerializationRead
/* Initializes the P6bigint representation. */
REPROps * P6bigint_initialize(PARROT_INTERP,
- PMC * (* wrap_object_func_ptr) (PARROT_INTERP, void *obj),
- PMC * (* create_stable_func_ptr) (PARROT_INTERP, REPROps *REPR, PMC *HOW)) {
+ wrap_object_t wrap_object_func_ptr,
+ create_stable_t create_stable_func_ptr) {
/* Stash away functions passed wrapping functions. */
wrap_object_func = wrap_object_func_ptr;
create_stable_func = create_stable_func_ptr;

0 comments on commit a2a20b6

Please sign in to comment.