MCPcopy Create free account
hub / github.com/codr7/hacktical-c / hc_form_init

Function hc_form_init

dsl/dsl.c:114–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

112}
113
114void hc_form_init(struct hc_form *f,
115 const struct hc_form_type *t,
116 const struct hc_sloc sloc,
117 struct hc_list *owner) {
118 f->type = t;
119 f->sloc = sloc;
120
121 if (owner) {
122 hc_list_push_back(owner, &f->owner);
123 } else {
124 hc_list_init(&f->owner);
125 }
126}
127
128void hc_form_emit(struct hc_form *f, struct hc_dsl *dsl) {
129 assert(f->type->emit);

Callers 3

hc_call_initFunction · 0.85
hc_id_initFunction · 0.85
hc_literal_initFunction · 0.85

Calls 2

hc_list_push_backFunction · 0.85
hc_list_initFunction · 0.85

Tested by

no test coverage detected