FreeCalypso > hg > freecalypso-reveng
diff leo-obj/tool/hints.c @ 136:81fc8da9a29c
tiobjd: disasm hints work now
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Mon, 07 Apr 2014 04:56:29 +0000 |
parents | c131238c56bf |
children |
line wrap: on
line diff
--- a/leo-obj/tool/hints.c Mon Apr 07 04:06:17 2014 +0000 +++ b/leo-obj/tool/hints.c Mon Apr 07 04:56:29 2014 +0000 @@ -135,8 +135,15 @@ hint->linebrk = 1; while (isspace(*cp)) cp++; - if (!*cp || *cp == '#') + if (!*cp || *cp == '#') { + if (hint->endpos != hint->pos) { + fprintf(stderr, + "%s line %d: no range allowed for linebrk hints\n", + filename_for_err, lineno); + exit(1); + } goto out; + } for (np = cp; *cp && !isspace(*cp); cp++) ; if (*cp)