Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/sort rename local macro blancmange() to SKIP_BLANKS(...
details: https://anonhg.NetBSD.org/src/rev/30362c963caf
branches: trunk
changeset: 545459:30362c963caf
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Apr 09 09:30:40 2003 +0000
description:
rename local macro blancmange() to SKIP_BLANKS(), to clarify what
it does and to better signal it might modify it's arguments
fixes PR bin/20546 by Peter Seebach
diffstat:
usr.bin/sort/fields.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (50 lines):
diff -r b494d8e5729a -r 30362c963caf usr.bin/sort/fields.c
--- a/usr.bin/sort/fields.c Wed Apr 09 09:12:38 2003 +0000
+++ b/usr.bin/sort/fields.c Wed Apr 09 09:30:40 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fields.c,v 1.11 2002/12/24 13:20:25 jdolecek Exp $ */
+/* $NetBSD: fields.c,v 1.12 2003/04/09 09:30:40 jdolecek Exp $ */
/*-
* Copyright (c) 1993
@@ -41,11 +41,11 @@
#include "sort.h"
#ifndef lint
-__RCSID("$NetBSD: fields.c,v 1.11 2002/12/24 13:20:25 jdolecek Exp $");
+__RCSID("$NetBSD: fields.c,v 1.12 2003/04/09 09:30:40 jdolecek Exp $");
__SCCSID("@(#)fields.c 8.1 (Berkeley) 6/6/93");
#endif /* not lint */
-#define blancmange(ptr) { \
+#define SKIP_BLANKS(ptr) { \
if (BLANK & d_mask[*(ptr)]) \
while (BLANK & d_mask[*(++(ptr))]); \
}
@@ -159,7 +159,7 @@
start = icol.p->start;
lineend = clist[ncols].end;
if (flags & BI)
- blancmange(start);
+ SKIP_BLANKS(start);
start += icol.indent;
start = min(start, lineend);
@@ -169,7 +169,7 @@
if (tcol.indent) {
end = tcol.p->start;
if (flags & BT)
- blancmange(end);
+ SKIP_BLANKS(end);
end += tcol.indent;
end = min(end, lineend);
} else
@@ -235,7 +235,7 @@
* (-r: +/-)(sign: +/-)(expsign: +/-)
*/
or_sign = sign ^ expsign ^ Rflag;
- blancmange(line);
+ SKIP_BLANKS(line);
if (*line == '-') { /* set the sign */
or_sign ^= 1;
sign = 0;
Home |
Main Index |
Thread Index |
Old Index