Jim Meyering
1fbac54162
[__P]: Don't define it here.
1995-11-15 22:12:59 +00:00
Jim Meyering
34fc818d7e
Add support for sorting numbers in scientific notation.
...
Include xstrtod.h.
(struct keyfield): Add field: general_numeric.
(usage): Describe -g option.
(general_numcompare): New function.
(keycompare): Use new comparison function when general_numeric
flag is set.
(set_ordering): Honor `g' flag.
(main): Initialize and use new field.
From Marcus Daniels <marcus@sysc.pdx.edu >.
1995-11-15 21:42:47 +00:00
Jim Meyering
f1e1eb58be
Break long lines.
1995-11-15 15:45:28 +00:00
Jim Meyering
5cf3719e7b
(cleanup): Don't exit.
...
(cleanup_fatal): New function. Call cleanup, then exit.
(sighandler): New function.
(cleanup_fatal): Renamed from cleanup. Call cleanup, then exit.
Update callers.
(tac_stdin): Set up sighandler as signal handler, not `cleanup'.
1995-11-15 05:39:58 +00:00
Jim Meyering
b36e366ef4
(cleanup): Don't exit.
...
(cleanup_fatal): New functoin. Call cleanup, then exit.
(interrupt_handler): Rewrite to reset default signal handler
then repost caught signal.
(xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
process_line_count, process_regexp, create_output_file, close_output_file):
Call cleanup_fatal, not cleanup.
Add const attribute to lots of parameters.
1995-11-15 05:32:28 +00:00
Jim Meyering
849a1c46cf
(skip): Cast fseek's offset argument to `long'.
...
Erik Bennett <bennett@cvo.oneworld.com > reported that this is
necessary on BSDI systems. And if offset doesn't fit in a long,
then try using lseek instead.
1995-11-11 22:08:16 +00:00
Jim Meyering
cc7705fe6f
(xmalloc): Declare static.
...
(xrealloc): Likewise.
1995-11-11 21:46:32 +00:00
Jim Meyering
1b1382a3a9
(cleanup): Add signal number parameter.
...
Update callers.
1995-11-11 14:35:27 +00:00
Jim Meyering
24aec7f87f
(main): Don't die when dev/ino of input and output are
...
the same and the file descriptors correspond to stdin and stdout.
This is necessary on at least Digital UNIX (aka OSF1) 3.2C.
Otherwise, running `cat << X > $$' would fail with `cat: -: input
file is output file'. From Jarkko Hietaniemi <jhi@epsilon.hut.fi >.
1995-11-11 14:21:15 +00:00
Jim Meyering
acb7c4ee48
Add __P in dcl of format_address function.
1995-11-11 03:28:38 +00:00
Jim Meyering
5796c221a1
(usage): Clarify meaning of --spaces.
1995-11-11 03:27:15 +00:00
Jim Meyering
dde28b7ffe
Don't include error.h here.
1995-11-10 15:20:00 +00:00
Jim Meyering
8014db4d68
Protect prototyped forward dcls with __P.
1995-11-10 14:56:21 +00:00
Jim Meyering
c6394074a8
(parse_ls_color): Use strcpy to initialize 3-character array.
...
Automatic aggregate initialization isn't portable.
1995-11-10 14:54:08 +00:00
Jim Meyering
83ce0dcba6
Remove fwd dcls.
1995-11-10 14:48:57 +00:00
Jim Meyering
9a69ea769a
Don't protoize dcl of basename.
1995-11-10 14:48:03 +00:00
Jim Meyering
3044600151
Don't protoize dcl of basename.
1995-11-10 14:47:09 +00:00
Jim Meyering
da6d91f64b
Don't protoize dcls of getpwnam and getgrnam.
1995-11-10 14:45:31 +00:00
Jim Meyering
c6ca8a1528
Remove bogus __P junk on xstat dcl.
1995-11-10 14:44:37 +00:00
Jim Meyering
8108bc26d6
Don't protoize fwd dcl of dirname.
1995-11-10 14:43:31 +00:00
Jim Meyering
0683df4bf8
Protoize and add const attribute to parameters.
1995-11-10 14:42:08 +00:00
Jim Meyering
05907fc584
Include error.h.
1995-11-10 14:41:20 +00:00
Jim Meyering
ca56751421
Remove prototypes for stat, lstat.
1995-11-10 14:22:07 +00:00
Jim Meyering
dd084ce340
[__P]: Define it.
1995-11-10 12:56:15 +00:00
Jim Meyering
09f8e7fb03
(main): Move to the end.
...
Remove fwd dcls.
1995-11-10 03:16:16 +00:00
Jim Meyering
c2e9e7a31b
(main): Move to the end.
...
Remove fwd dcls.
1995-11-10 03:14:41 +00:00
Jim Meyering
49f397e6e7
Rearrange functions to obviate forward dcls.
...
Remove forward dcls.
1995-11-09 23:52:40 +00:00
Jim Meyering
6161f25abc
(main): Move to the end.
...
Remove fwd dcls.
1995-11-09 23:49:53 +00:00
Jim Meyering
0898b54377
(main): Move to the end.
...
Remove fwd dcls.
1995-11-09 23:49:02 +00:00
Jim Meyering
6f1c4b7a75
Protect prototypes with __P.
1995-11-09 23:47:52 +00:00
Jim Meyering
b7b00aad08
Protect prototypes with __P.
1995-11-09 23:41:10 +00:00
Jim Meyering
ec2a94a410
(main): Move to the end.
...
Remove most fwd dcls.
1995-11-09 23:31:16 +00:00
Jim Meyering
4796ddfe36
(main): Move to the end.
...
Remove most fwd dcls.
1995-11-09 23:27:55 +00:00
Jim Meyering
31856b16c3
indent.
1995-11-09 23:27:32 +00:00
Jim Meyering
6732422b97
(main): Move to the end.
...
Remove most fwd dcls.
1995-11-09 23:26:17 +00:00
Jim Meyering
2b3ce6fab9
Move main to the end.
...
Remove fwd dcls.
1995-11-09 23:16:13 +00:00
Jim Meyering
b951477c80
(translate_charset): Make parameter `const'.
1995-11-09 23:02:27 +00:00
Jim Meyering
0bf332a016
(struct pathstack): Move dcl to precede prototypes.
1995-11-09 23:00:32 +00:00
Jim Meyering
3e12088cf0
(enum filetype): Move dcl to precede prototypes.
...
(struct fileinfo): Likewise.
Add const attribute to some parameters.
1995-11-09 23:00:14 +00:00
Jim Meyering
c0d94c89ec
Protoize.
1995-11-09 17:02:23 +00:00
Jim Meyering
553eb65acd
(usage): Clarify descriptions of ignpar and ignbrk.
...
From Theodore Ts'o and Ulrich Windl.
1995-11-08 05:54:07 +00:00
Jim Meyering
b7df779b8b
New option: --verbose.
...
(main): Recognize it.
(usage): Document it.
From Marty Leisner <leisner@sdsp.mc.xerox.com >.
1995-11-07 04:56:08 +00:00
Jim Meyering
72ce8c67c5
(usage): Remove last sentence. It is redundant.
1995-11-06 14:01:46 +00:00
Jim Meyering
22132a47aa
[__P]: Define. Use it in prototyped forward decls.
1995-11-06 05:06:25 +00:00
Jim Meyering
0705aa7388
(store_columns): Remove spurious 2nd argument in call to read_line.
1995-11-06 05:01:16 +00:00
Jim Meyering
762769cf3b
Protoize.
1995-11-06 04:58:56 +00:00
Jim Meyering
82eae6c9b5
(join): Protoize. Somehow, protoize missed this one.
1995-11-05 16:58:15 +00:00
Jim Meyering
ce5f4177bc
Protect prototypes with __P.
1995-11-05 13:16:24 +00:00
Jim Meyering
48f3bca87e
Move prototypes after struct declarations.
...
Remove prototypes for xmalloc, xrealloc.
(new_control_record): Cast arg 1 to realloc.
1995-11-05 13:12:54 +00:00
Jim Meyering
adf0ec7008
Protoize.
1995-11-05 13:02:44 +00:00