Jim Meyering
e7f7f3da11
reinclude memcoll.h (mistakenly removed by me)
1999-07-04 10:41:26 +00:00
Jim Meyering
115372366e
Add support for LC_COLLATE locale.
...
Include hard-locale.h, linebuffer.h, memcoll.h.
(struct line): New member `buf', replacing `beg' and `lim'.
All uses changed.
(hard_LC_COLLATE): New var.
(main): Initialize it.
(get_line): Use readline to read the line,
instead of doing it by hand.
That way, we get a buffer that we can pass to memcoll.
(keycmp): Use memcoll to compare lines if hard_LC_COLLATE is nonzero.
1999-07-04 10:28:08 +00:00
Jim Meyering
fb71ae4c86
(xfields): Only <blank>s separate fields, not <space>s.
1999-07-04 09:40:46 +00:00
Jim Meyering
771bc6ea9d
(xfields): Don't interpret a trailing blank as a
...
delimiter when e.g. -t: was specified. From Tim Smithers.
1999-05-15 05:28:16 +00:00
Jim Meyering
e060631c35
(TOLOWER): Remove definition.
1999-05-03 17:55:53 +00:00
Jim Meyering
d815c152df
Standardize --help and --version processing.
1999-04-04 15:44:26 +00:00
Jim Meyering
c21cecaea8
Use AUTHORS in place of string in parse_long_options call.
1999-04-03 05:26:48 +00:00
Jim Meyering
1d47220ab2
Insert AUTHORS definition.
1999-04-03 05:22:05 +00:00
Jim Meyering
cf691ec714
Use PROGRAM_NAME in place of string in parse_long_options call.
1999-04-03 05:20:06 +00:00
Jim Meyering
7c2d5de6c7
define PROGRAM_NAME
1999-04-03 05:01:48 +00:00
Jim Meyering
6e7be7b1c6
(main): Include author name argument.
1999-03-04 05:26:47 +00:00
Jim Meyering
7568de8654
update copyright dates
1999-02-16 04:20:43 +00:00
Jim Meyering
9fec9172be
Don't prototype usage as static.
1999-01-14 18:25:16 +00:00
Jim Meyering
6880f434c0
update bug-reporting address
1998-09-19 17:24:05 +00:00
Jim Meyering
b49807bfb2
Convert some char* dcls to `unsigned char*' and remove a cast --
...
to placate irix4's cc.
1998-07-26 20:43:50 +00:00
Jim Meyering
257c5c4737
revert back to using lower case _unlocked wrapper names
1998-06-29 15:57:45 +00:00
Jim Meyering
dd9470cb58
Change all uses of unlocked-wrapped functions to their upper case wrapper names.
1998-06-29 02:11:07 +00:00
Jim Meyering
0d38a270a4
Do not define _GNU_SOURCE and/or NDEBUG
1998-04-26 20:38:28 +00:00
Jim Meyering
1187f5eb7f
(xfields): Used unsigned char* pointers to avoid
1998-04-17 15:37:29 +00:00
Jim Meyering
d4257e63c7
Use STREQ rather than strcmp
1998-04-12 09:27:45 +00:00
Jim Meyering
dba300a0d0
CHAR_BIT SCHAR_MAX UCHAR_MAX SHRT_MAX INT_MAX UINT_MAX LONG_MAX ULONG_MAX
...
Remove definitions of those symbols.
* src/csplit.c: Move inclusion of regex.h/rx.h to follow system.h
since it now includes limit.h which defines RE_DUP_MAX.
* src/nl.c: Likewise.
* src/tac.c: Likewise.
1998-01-10 22:12:03 +00:00
Jim Meyering
e211bb2aff
Remove old-style xmalloc and xrealloc decls.
1997-10-25 04:45:43 +00:00
Jim Meyering
3f3f566627
update bug-reporting address
1997-10-07 23:55:52 +00:00
Jim Meyering
dbc538f92b
update copyrights for 1997
1997-02-09 04:46:02 +00:00
Jim Meyering
e8bcfd934a
Move alloca-related preprocessor code into system.h.
1997-02-03 05:08:19 +00:00
Jim Meyering
e077b7593b
bracket bug address with <> and append a period
1997-02-01 04:24:58 +00:00
Jim Meyering
c2d2dec516
Compare getopt_long return value against -1, not EOF. Use NULL, not '(int *) 0' as last parameter in getopt_long call.
1997-02-01 02:00:04 +00:00
Jim Meyering
a8bcd782c4
update for changed xstrtou?l
1997-01-25 06:21:24 +00:00
Jim Meyering
e298f1f300
(usage): Alphabetize options like sort -f would.
1996-11-23 22:06:55 +00:00
Jim Meyering
5582e6dad3
change bug-reporting address
1996-11-03 03:16:27 +00:00
Jim Meyering
b8e689dc67
change bug-reporting address
1996-11-02 20:44:15 +00:00
Jim Meyering
f9cd2cf6e2
(decode_field_spec): Always give FIELD_INDEX a value.
...
This avoids spurious UMR from purify.
(prjoin): Add an assertion.
(add_field): Update assertion.
1996-10-31 23:55:04 +00:00
Jim Meyering
2c035a7cfd
(main): update --version output again
1996-10-04 04:28:35 +00:00
Jim Meyering
c609ba2d13
(usage): Tell where to report bugs.
1996-09-02 15:34:25 +00:00
Jim Meyering
59d334f4d4
update Copyright years for 1996
1996-04-24 04:50:53 +00:00
Jim Meyering
b4a20010e6
(decode_field_spec): Rename local variable `valid'
...
to invalid (and reverse sense) to avoid conflict with the
macro definition in /usr/include/locale.h on SunOS 4.1.3.
1996-04-13 18:11:43 +00:00
Jim Meyering
5d5979d9a8
(memcasecmp): Remove static definition of function.
...
Include memcasecmp.h instead.
1996-04-10 03:47:28 +00:00
Jim Meyering
818d29db9b
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.
1996-03-24 16:59:11 +00:00
Jim Meyering
47f70113d4
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
...
This doesn't change `error (1' calls.
1996-03-24 14:58:01 +00:00
Jim Meyering
adb7c216b2
(main): Declare to be of type int, not void.
1996-03-21 22:41:04 +00:00
Jim Meyering
4229a555fc
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 22:30:54 +00:00
Jim Meyering
d385bbc985
(memcasecmp): Declare local I to be unsigned to avoid warning from gcc -Wall.
1996-03-09 20:24:01 +00:00
Jim Meyering
715765a548
(main): Initialize for internationalized message support: call setlocale,
...
bindtextdomain, and textdomain.
1996-03-09 20:19:13 +00:00
Jim Meyering
756fe67e60
(xfields) [without -t]: Ignore leading blanks.
...
From David Dyck (dcd@tc.fluke.COM ).
1996-02-22 00:58:12 +00:00
Jim Meyering
28a24ea3be
[TOLOWER]: Define.
...
(usage): Briefly describe new --ignore-case (-i) option.
(memcasecmp): New function.
(main): Set IGNORE_CASE for -i.
(keycmp): Compare with memcasecmp if IGNORE_CASE is set.
Suggestion and an initial patch from Alberto Accomazzi
<alberto@cfa0.harvard.edu >.
1996-02-18 18:08:01 +00:00
Jim Meyering
73d5e9c5dd
Mark a few error strings for translation.
...
From Franc,ois Pinard.
1996-02-17 03:42:26 +00:00
Jim Meyering
7956c15081
s/non-zero/nonzero/g
1995-11-27 03:09:18 +00:00
Jim Meyering
82eae6c9b5
(join): Protoize. Somehow, protoize missed this one.
1995-11-05 16:58:15 +00:00
Jim Meyering
3ac64eda17
(prjoin): Handle case in which file spec is 0.
...
(add_field): Update assertions.
(decode_field_spec): For S == "0", set file spec to zero and don't modify
*FIELD_INDEX. Otherwise, *FIELD_INDEX gets the zero-based index.
1995-10-13 17:22:58 +00:00
Jim Meyering
9845d179b3
(prjoin): Rewrite loop that iterates over field specs.
1995-10-13 13:16:34 +00:00