missed \0-9 for the gold numbers from qccx

This commit is contained in:
Bill Currie 2010-01-13 06:22:01 +00:00 committed by Jeff Teunissen
parent 36fe939ea5
commit 07b61aa23f
2 changed files with 15 additions and 9 deletions

View file

@ -514,6 +514,7 @@ make_string (char *token, char **end)
case '5':
case '6':
case '7':
if (!options.qccx_escapes) {
for (i = c = 0; i < 3
&& *token >= '0'
&& *token <= '7'; i++, token++) {
@ -523,6 +524,11 @@ make_string (char *token, char **end)
if (!*token)
error (0, "EOF inside quote");
break;
}
case 8:
case 9:
c = 18 + c - '0';
break;
case 'x':
c = 0;
while (*token && isxdigit ((unsigned char)*token)) {
@ -621,7 +627,7 @@ make_string (char *token, char **end)
break;
}
} else if (c == quote) {
break;;
break;
}
if (boldnext)
c = c ^ 0x80;

View file

@ -97,7 +97,7 @@ new_struct_field (struct_t *strct, type_t *type, const char *name,
if (size > strct->size)
strct->size = size;
} else {
field->offset = strct->size;;
field->offset = strct->size;
strct->size += type_size (type);
}
field->next = 0;