85 } |
85 } |
86 case LINE_END_TAG: { |
86 case LINE_END_TAG: { |
87 sstr_t tag = cfg_get_end_tag_name(line); |
87 sstr_t tag = cfg_get_end_tag_name(line); |
88 if(sstrcmp(tag, conf->obj->type) != 0) { |
88 if(sstrcmp(tag, conf->obj->type) != 0) { |
89 fprintf(stderr, "syntax error: wrong close tag\n"); |
89 fprintf(stderr, "syntax error: wrong close tag\n"); |
90 fprintf(stderr, "open tag: %s close tag: %s\n", sstrdub(tag).ptr, sstrdub(conf->obj->type).ptr); |
90 fprintf(stderr, "open tag: %s close tag: %s\n", sstrdup(tag).ptr, sstrdup(conf->obj->type).ptr); |
91 exit(-1); |
91 exit(-1); |
92 } |
92 } |
93 conf->obj = NULL; |
93 conf->obj = NULL; |
94 |
94 |
95 break; |
95 break; |