Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
void (*free)(void *v);
};
typedef struct isl_obj_vtable *isl_obj_type;
-extern isl_obj_type isl_obj_none;
+extern struct isl_obj_vtable isl_obj_none_vtable;
+#define isl_obj_none (&isl_obj_none_vtable)
extern struct isl_obj_vtable isl_obj_set_vtable;
#define isl_obj_set (&isl_obj_set_vtable)
extern struct isl_obj_vtable isl_obj_map_vtable;
return NULL;
}
-static struct isl_obj_vtable obj_none = {
+struct isl_obj_vtable isl_obj_none_vtable = {
isl_obj_none_copy,
isl_obj_none_add,
isl_obj_none_print,
isl_obj_none_free
};
-isl_obj_type isl_obj_none = &obj_none;
static void *isl_obj_pw_qp_copy(void *v)
{