mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-04-12 18:40:23 +08:00
nasm: rename nasm_zap_spaces() to nasm_zap_spaces_fwd()
By analogy with nasm_zap_spaces_rev() have nasm_zap_spaces_fwd(). The forward version isn't a super-common operation, and it might be possible to think the reverse one is the "normal" version... therefore we might as well be explicit. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
parent
d61debfc91
commit
ff800417a1
2
nasm.c
2
nasm.c
@ -1331,7 +1331,7 @@ static void assemble_file(char *fname, StrList **depend_ptr)
|
||||
break;
|
||||
}
|
||||
if (*p) {
|
||||
p = nasm_zap_spaces(p);
|
||||
p = nasm_zap_spaces_fwd(p);
|
||||
q = p;
|
||||
while (*q && *q != ':')
|
||||
q++;
|
||||
|
@ -673,7 +673,7 @@ char *nasm_skip_word(const char *p)
|
||||
}
|
||||
|
||||
/* zap leading spaces with zero */
|
||||
char *nasm_zap_spaces(char *p)
|
||||
char *nasm_zap_spaces_fwd(char *p)
|
||||
{
|
||||
if (p)
|
||||
while (*p && nasm_isspace(*p))
|
||||
|
@ -379,7 +379,7 @@ char *nasm_strcat(const char *one, const char *two);
|
||||
|
||||
char *nasm_skip_spaces(const char *p);
|
||||
char *nasm_skip_word(const char *p);
|
||||
char *nasm_zap_spaces(char *p);
|
||||
char *nasm_zap_spaces_fwd(char *p);
|
||||
char *nasm_zap_spaces_rev(char *p);
|
||||
|
||||
const char *prefix_name(int);
|
||||
|
Loading…
x
Reference in New Issue
Block a user