FreeCalypso > hg > freecalypso-reveng
comparison 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 |
comparison
equal
deleted
inserted
replaced
135:df432a4b1b84 | 136:81fc8da9a29c |
---|---|
133 *cp++ = '\0'; | 133 *cp++ = '\0'; |
134 if (!strcmp(np, "linebrk") || !strcmp(np, "linebreak")) { | 134 if (!strcmp(np, "linebrk") || !strcmp(np, "linebreak")) { |
135 hint->linebrk = 1; | 135 hint->linebrk = 1; |
136 while (isspace(*cp)) | 136 while (isspace(*cp)) |
137 cp++; | 137 cp++; |
138 if (!*cp || *cp == '#') | 138 if (!*cp || *cp == '#') { |
139 if (hint->endpos != hint->pos) { | |
140 fprintf(stderr, | |
141 "%s line %d: no range allowed for linebrk hints\n", | |
142 filename_for_err, lineno); | |
143 exit(1); | |
144 } | |
139 goto out; | 145 goto out; |
146 } | |
140 for (np = cp; *cp && !isspace(*cp); cp++) | 147 for (np = cp; *cp && !isspace(*cp); cp++) |
141 ; | 148 ; |
142 if (*cp) | 149 if (*cp) |
143 *cp++ = '\0'; | 150 *cp++ = '\0'; |
144 } | 151 } |