better with object_stack but still not correct

This commit is contained in:
Kolan Sh 2011-07-18 19:00:51 +04:00
parent a81c73dc23
commit 1e1bcf1236
1 changed files with 29 additions and 26 deletions

View File

@ -122,7 +122,8 @@ void tex_parse(const char *source, size_t len, struct tex_struct_s **tex_struct,
else if (!strcmp(tag, TEX_TAG_TABULARNEWLINE)) {
where_stack[tex_level] = IN_TAG_TABULARNEWLINE;
} else if (!strcmp(tag, TEX_TAG_ENDFIRSTHEAD)) {
} else {
if (!strcmp(tag, TEX_TAG_ENDFIRSTHEAD)) {
// subtable is first header - some actions here...
object_stack[obj_level] = OBJ_TABLE_SUBTABLE;
#ifdef __TEX_PARSER_DEBUG
@ -150,8 +151,10 @@ void tex_parse(const char *source, size_t len, struct tex_struct_s **tex_struct,
puts("=OBJ_TABLE_SUBTABLE");
#endif
} else
}
where_stack[tex_level] = IN_TAG_UNKNOWN;
}
#ifdef __TEX_PARSER_DEBUG
printf("\\%s\n", tag);