From ff800417a1842f8f0f82a55cf78c061d623ec307 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Tue, 13 Oct 2009 12:03:37 -0700 Subject: [PATCH] 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 --- nasm.c | 2 +- nasmlib.c | 2 +- nasmlib.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nasm.c b/nasm.c index ed0a2cb7..d955660f 100644 --- a/nasm.c +++ b/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++; diff --git a/nasmlib.c b/nasmlib.c index 79935ada..0dea39ec 100644 --- a/nasmlib.c +++ b/nasmlib.c @@ -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)) diff --git a/nasmlib.h b/nasmlib.h index f3128b5c..2b30ef41 100644 --- a/nasmlib.h +++ b/nasmlib.h @@ -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); -- 2.11.4.GIT