aded STIX_SYNERR_INCLUDE

This commit is contained in:
hyunghwan.chung
2015-07-03 14:38:37 +00:00
parent 5ba0c67dd1
commit 132e4b48bb
5 changed files with 13 additions and 5 deletions

View File

@ -1383,7 +1383,11 @@ static int begin_include (stix_t* stix)
arg->colm = 1;
arg->includer = stix->c->curinp;
if (stix->c->impl (stix, STIX_IO_OPEN, arg) <= -1) goto oops;
if (stix->c->impl (stix, STIX_IO_OPEN, arg) <= -1)
{
set_syntax_error (stix, STIX_SYNERR_INCLUDE, &stix->c->tok.loc, &stix->c->tok.name);
goto oops;
}
stix->c->curinp = arg;
/* stix->c->depth.incl++; */