[hackers] [sbase] Minor style changes to sort || sin
commit 1d5663672e918b6935813f254f813eb96cb40589
Author: sin <sin_AT_2f30.org>
Date: Fri Apr 18 17:21:31 2014 +0100
Minor style changes to sort
diff --git a/sort.c b/sort.c
index d86696c..9d4a7ce 100644
--- a/sort.c
+++ b/sort.c
_AT_@ -198,6 +198,7 @@ columns(char *line, const struct keydef *kd)
char *rest;
char *start, *end;
unsigned i;
+
for(rest = line, i = 0; i < kd->start_column; i++) {
if(i != 0)
rest = next_blank(rest);
_AT_@ -212,11 +213,10 @@ columns(char *line, const struct keydef *kd)
rest = next_blank(rest);
rest = next_nonblank(rest);
}
- if(kd->end_char) {
+ if(kd->end_char)
for(i = 1; i < kd->end_char && *rest && !isblank(*rest); i++, rest++);
- } else {
+ else
rest = next_blank(rest);
- }
end = rest;
} else {
end = rest + strlen(rest);
Received on Fri Apr 18 2014 - 18:25:03 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 18 2014 - 18:36:22 CEST