void
cf_init_stack(struct cf_context *cc)
{
- if (!cc->initialized++) {
+ if (!cc->sections_initialized++) {
cc->sections.flags |= SEC_FLAG_UNKNOWN;
cc->sections.size = 0; // size of allocated array used to be stored here
cf_init_section(NULL, &cc->sections, NULL, 0);
}
int
-cf_check_stack(struct cf_context *cc)
+cf_done_stack(struct cf_context *cc)
{
- if (cc->stack_level > 0) {
- msg(L_ERROR, "Unterminated block");
- return 1;
- }
- return 0;
+ return (cc->stack_level > 0);
}