diff options
author | H. Peter Anvin <hpa@zytor.com> | 2007-08-31 00:16:10 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2007-08-31 00:16:10 +0000 |
commit | 2c29a0b264195cb3e93f29ed841796ebac25c193 (patch) | |
tree | 048a301c9bb5f75a5763109c7153759f022410fb /stdscan.c | |
parent | fb5a599c8ac2c67139e2d37c0b7031ea75e1da84 (diff) | |
download | nasm-2c29a0b264195cb3e93f29ed841796ebac25c193.tar.gz |
Minor cleanup; remove duplication of names.c
Diffstat (limited to 'stdscan.c')
-rw-r--r-- | stdscan.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -74,8 +74,8 @@ int stdscan(void *private_data, struct tokenval *tv) if (isidstart(*stdscan_bufptr) || (*stdscan_bufptr == '$' && isidstart(stdscan_bufptr[1]))) { /* now we've got an identifier */ - uint32_t i; int is_sym = FALSE; + int t; if (*stdscan_bufptr == '$') { is_sym = TRUE; @@ -99,8 +99,8 @@ int stdscan(void *private_data, struct tokenval *tv) *r = '\0'; /* right, so we have an identifier sitting in temp storage. now, * is it actually a register or instruction name, or what? */ - if (nasm_token_hash(ourcopy, tv) != -1) - return tv->t_type; + if ((t = nasm_token_hash(ourcopy, tv)) != -1) + return t; else return tv->t_type = TOKEN_ID; } else if (*stdscan_bufptr == '$' && !isnumchar(stdscan_bufptr[1])) { |