Quoting Dan Sugalski ([EMAIL PROTECTED]):
> Okay, here's a quick rundown on PMCs and how we're handling opcodes called 
> on PMC registers. (This is mildly different than what's gone in the past, FWIW)
> 
> Every PMC has a set of static types, stored in the vtable. These types are 
> static, and stuck in the base vtable structure, which looks like:
> 
>    struct _vtable {
>       PACKAGE *package;
>       INTVAL  base_type;
>       INTVAL  int_type;
>       INTVAL  float_type;
>       INTVAL  num_type;
>       INTVAL  string_type;
>         void *(*vtable_funcs[VTABLE_SIZE])()
>    }
> 
> (cdecl's responsible for the function pointer table declaration, so I 
> expect it's right for what I told it, but I might've told it wrong)

For sanity's sake, I don't suppose you'd consider

typedef void* (*vtable_func_t)();

to make it

vtable_func_t vtable_funcs[VTABLE_SIZE];

?

Reply via email to