jdolecek
d1de60425b
fix check for field order to allow .0 form in "-k 1.2,1.0"
...
fix provided in PR bin/25572 by Ross Patterson
2006-10-23 20:36:17 +00:00
dsl
e219d781d7
Add (unsigned char) cast to ctype functions
2004-11-03 20:10:08 +00:00
jdolecek
de243242be
insertcol() may insert up to two items to clist, so allocate memory accordingly
...
this fixes sort regression test 28A and 28B
2004-02-18 20:44:36 +00:00
jdolecek
c8e0ab671d
fix parsing of some +POS -POS variants, as pointed out by sort regression
...
tests
2004-02-17 20:17:38 +00:00
itojun
909cd63c63
safer realloc idiom
...
minor knf
2004-02-17 02:31:33 +00:00
jdolecek
9f77432368
remove compile-time limit on number of -k options, allocate necessary
...
structures as-needed
2004-02-15 14:22:55 +00:00
jdolecek
87c48f115e
rewrite fixit() to duplicate less code, and comment the contents better;
...
also removes compile-time dependancy on ND constant
2004-02-15 14:19:22 +00:00
jdolecek
afac62bca7
g/c redundant setfield() prototype
...
clear setcolumn() somewhat - use strtol() instead of sscanf(), and
simplify flag setting code
2004-02-15 12:35:26 +00:00
jdolecek
f84513a754
add TNF copyright
2003-08-07 11:32:34 +00:00
agc
89aaa1bb64
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22365, verified by myself.
2003-08-07 11:13:06 +00:00
jdolecek
9208bb6e3a
add extern definition for ncols and clist[] to sort.h, eliminate extra
...
definitions in init.c and field.c
g/c MAXMERGE
2002-12-24 13:20:25 +00:00
thorpej
2aa37f4ab3
Change some:
...
foo += sscanf(++foo, ...);
constructs to:
++foo;
foo += sscanf(foo, ...);
to avoid the following warning from gcc 3.1:
warning: operation on `pos' may be undefined
2001-12-31 18:45:04 +00:00
jdolecek
affba8f2e9
Pull up various cosmetic (mostly whitespace) changes from OpenBSD.
...
This is primarily to ease syncing the two versions.
2001-02-19 20:50:17 +00:00
jdolecek
adefa598e8
use toupper() where appropriate
...
whitespace/parenthesis police
2001-01-12 19:30:22 +00:00
jdolecek
a65a3ad759
cosmetic change: make setcolumn() static, remove bogus redundant setcolumn() prototype
...
inside setcolumn() function, constify
2000-10-16 21:41:05 +00:00
bjh21
6029888a3a
Hit sort(1) with a hammer till it compiles.
...
Also add RCSIDs.
2000-10-07 18:37:09 +00:00
bjh21
1d5d9b5b60
4.4BSD-Lite2 contrib/sort
2000-10-07 16:39:34 +00:00