luzhixing12345 / syntaxlight

基于 BNF 的语法高亮

Home Page:https://luzhixing12345.github.io/syntaxlight/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[c] point + function call

luzhixing12345 opened this issue · comments

static void type_initialize(TypeImpl *ti)
{
    // ...
    if (ti->class_init) {
        ti->class_init(ti->class, ti->class_data);
    }
}
static void object_class_foreach_tramp(gpointer key, gpointer value,
                                       gpointer opaque)
{
    OCFData *data = opaque;
    TypeImpl *type = value;
    ObjectClass *k;

    type_initialize(type);
    k = type->class;

    if (!data->include_abstract && type->abstract) {
        return;
    }

    if (data->implements_type &&
        !object_class_dynamic_cast(k, data->implements_type)) {
        return;
    }

    data->fn(k, data->opaque);
}