void init_css_node_children(css_node_t *node, int children_count) { node->context = calloc((size_t)children_count, sizeof(css_node_t)); for (int i = 0; i < children_count; ++i) { init_css_node(node->get_child(node->context, i)); init_test_css_node(node->get_child(node->context, i)); } node->children_count = children_count; }
css_node_t *new_css_node() { css_node_t *node = (css_node_t *)calloc(1, sizeof(*node)); init_css_node(node); return node; }