mirror of
https://github.com/netwide-assembler/nasm
synced 2026-08-26 16:23:04 -04:00
asm/preproc.c: remove dead code, improve comment
ppscan() had a break; statement followed immediately by a return statement. The latter was left over from code restructuring and is dead code. Remove it. Fix a nearby comment indicating that we should not need to strip a const from a string pointer. Probably Token::t_charptr should be const, but it might need additional work. Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
parent
c8ea2d906d
commit
e1e03770f7
1 changed files with 1 additions and 2 deletions
|
|
@ -2283,12 +2283,11 @@ static int ppscan(void *private_data, struct tokenval *tokval)
|
|||
txt = tok_text(tline);
|
||||
tokval->t_start = txt;
|
||||
tokval->t_len = tline->len;
|
||||
tokval->t_charptr = (char *)txt; /* Fix this */
|
||||
tokval->t_charptr = (char *)txt; /* Fix needing const removal here */
|
||||
|
||||
switch (tline->type) {
|
||||
default:
|
||||
break;
|
||||
return tokval->t_type = tline->type;
|
||||
|
||||
case TOKEN_ID:
|
||||
if (txt[0] == '$') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue