Jim Meyering
bda4a5e5b7
(BEGIN_STATE): Use INT_MAX - 1 so as not to interfere with large repeat counts.
...
(struct E_string): New struct.
(find_closing_delim): Take E_string arg rather than char* and length.
(find_bracketed_repeat): Likewise.
(star_digits_closebracket): New function.
(append_char_class): No longer give diagnostic.
(append_equiv_class): No longer give diagnostic.
(build_spec_list): Give them here instead, allowing things like [:*][:upper:]
that got errors before.
Take E_string arg rather than char*.
Convert switch stmts into if-then so as to use ES_MATCH.
1995-10-20 04:26:56 +00:00
Jim Meyering
6f6a35a9a1
Indent cpp directives.
1995-10-19 22:38:39 +00:00
Jim Meyering
d691ea7ebc
(build_spec_list): Propagate interface change.
...
(parse_str): Likewise.
1995-10-19 15:42:45 +00:00
Jim Meyering
ca63ca90ab
(struct E_string): Define.
...
(unquote): Convert string to E_string instead of overwriting input.
Backslash-escaped non-special characters are marked as quoted in E_string.
(build_spec_list): Convert outer switch stmt to an if-stmt.
(parse_str): Update sole caller of unquote.
1995-10-19 15:33:33 +00:00
Jim Meyering
6dd358e12d
Break lines longer than 79-80 chars.
1995-10-19 13:29:34 +00:00
Jim Meyering
63b348b3a9
Use HAVE_SYS_WAIT_H, not _POSIX_VERSION in conditional
...
inclusion of sys/wait.h.
[endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
[endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
1995-10-18 22:05:29 +00:00
Jim Meyering
6181f175e3
Use HAVE_SYS_IOCTL_H, rather than !_POSIX_SOURCE || _AIX.
1995-10-18 22:05:06 +00:00
Jim Meyering
5a52e61271
(duplicate_entry): Always return 0 if !D_INO_IN_DIRENT, rather than
...
if _POSIX_SOURCE
1995-10-18 17:02:07 +00:00
Jim Meyering
492b177ca5
(main): Fail if the same file system type was both selected and excluded.
1995-10-18 16:11:58 +00:00
Jim Meyering
daa976fff6
[endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
1995-10-18 16:08:13 +00:00
Jim Meyering
871d176f15
[endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
...
[endgrent]: Remove unused definition.
1995-10-18 16:07:44 +00:00
Jim Meyering
a42c7fe2d1
Prootize.
1995-10-18 03:45:44 +00:00
Jim Meyering
b792f7aa0e
Add `const' attribute to dcls of lots of formals.
1995-10-17 14:01:00 +00:00
Jim Meyering
9242af95a3
Protoize.
1995-10-17 13:49:32 +00:00
Jim Meyering
9583179c1b
Protoize.
1995-10-17 13:47:48 +00:00
Jim Meyering
d9dee002e6
Reorder functions to obviate forward dcls. Remove forward dcls.
1995-10-17 13:43:00 +00:00
Jim Meyering
434b809272
Reorder functions to obviate forward dcls. Remove forward dcls.
1995-10-17 13:39:44 +00:00
Jim Meyering
4feb3b1e06
Protoize. Reorder functions to obviate forward dcls. Remove forward dcls.
1995-10-17 13:35:26 +00:00
Jim Meyering
14390d1fed
Protoize. Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-10-17 13:13:19 +00:00
Jim Meyering
8831ffbec4
Protoize.
...
Reorder functions to obviate forward dcls.
Remove forward dcls.
1995-10-16 21:30:25 +00:00
Jim Meyering
45d4def5e4
Move struct dcls to precede dcls of file-scope variables.
...
(monthtab, keyhead): Separate variable dcls from type dcls.
1995-10-16 14:45:09 +00:00
Jim Meyering
b9c1393e5f
(usage): Move function definition to precede uses and
...
remove remove forward dcl.
Protoize and add `const' attribute to dcls of lots of formals.
1995-10-16 14:38:11 +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
Jim Meyering
11b87d29cc
(add_field_list): Allow SPACE and TAB as well as `,' as list item separators.
1995-10-12 21:42:52 +00:00
Jim Meyering
bc7210e563
Remove bogus FIXME.
1995-10-12 04:08:35 +00:00
Jim Meyering
06ea91f2f3
(main): Close input files.
1995-10-08 04:02:00 +00:00
Jim Meyering
3c7699600f
Add alloca junk.
1995-10-08 03:38:09 +00:00
Jim Meyering
6f63d53e1b
(add_field): No longer return a value.
...
(decode_field_spec): New function.
(add_field_list): Rewrite to be more strict about what is accepted.
Before, `,1.2' was accepted as valid.
(main): Use xstrtol instead atoi.
Combine nearly identical -a and -v cases.
1995-10-08 03:28:21 +00:00
Jim Meyering
cc61df7131
Include limits.h.
...
[!INT_MAX]: Define it.
1995-10-06 02:55:14 +00:00
Jim Meyering
965c0bf39d
[!HAVE_UTIME_H]: Don't declare struct utimbuf here.
...
[!HAVE_STRUCT_UTIMBUF]: Declare struct utimbuf here instead.
1995-10-06 02:53:42 +00:00
Jim Meyering
e387fd1471
(show_point): Cast -2 to dev_t before assignment.
1995-10-05 14:12:29 +00:00
Jim Meyering
1c7bc6028a
protoize
1995-10-04 21:21:23 +00:00
Jim Meyering
74f061de82
Remove forward dcl of usage.
1995-10-04 21:20:40 +00:00
Jim Meyering
47b91b8948
(usage): Move to precede all other functions.
1995-10-04 21:19:28 +00:00
Jim Meyering
2d73c959cc
(main): Report `too few/many non-option arguments' then print --help
...
output rather than just the latter.
Properly interpret obsolescent usage like `join -o 2.1 2.1 2.2'.
(usage): Describe POSIX -1, -2 options and deprecate -j* ones
1995-10-04 21:17:43 +00:00
Jim Meyering
a9de4d485a
Test SA_INTERRUPT, not _POSIX_VERSION,
...
to determine whether `sigaction' functions are available.
Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu >.
Fix suggested by Karl Berry.
1995-10-04 03:46:35 +00:00
Jim Meyering
111cb717e8
(set_fields): Use memset (not open coded loop) to initialize array.
1995-10-03 20:28:44 +00:00
Jim Meyering
6a45f61547
Convert a lot of int' types to unsigned int' to avoid warnings from
...
`gcc -Wall' about comparing signed and unsigned types.
1995-10-03 20:21:32 +00:00
Jim Meyering
026d10d369
(main): Declare counter, N_STRINGS, to be an integral type, not `char'.
1995-10-03 20:18:39 +00:00
Jim Meyering
b3303ba072
Declare stat, xstat.
1995-10-01 22:40:11 +00:00
Jim Meyering
eddb25aa26
Declare stat, xstat.
1995-10-01 20:17:25 +00:00
Jim Meyering
527d04d44b
(dired_dump_obstack): Don't generate any output if the obstack is empty.
...
(main): Always initialize and dump subdired_obstack, not just if -R.
`ls -lDR dir dir2' was using uninitialized subdired_obstack.
Reported by Samuli K{rkk{inen <hskarkka@snakemail.hut.fi >.
1995-09-29 04:09:22 +00:00
Jim Meyering
9a12d05216
(decode_one_format): Remove spurious semicolon.
1995-09-27 15:58:18 +00:00
Jim Meyering
744393f0f4
(show_point): Ignore mtab entries with either
...
nonexistent mount points or with inconsistent device number.
From Eirik Fuller <eirik@synopsys.com >.
1995-09-26 04:18:55 +00:00
Jim Meyering
12e85d31e2
Protoize.
1995-09-24 13:36:13 +00:00
Jim Meyering
528390fa58
(print_kth): Change order of args in compare, and reverse sense of comparison
...
(Hence, no semantic change).
1995-09-23 20:42:52 +00:00
Jim Meyering
f344b7fab6
(md5_check): Distinguish between open/read failure and checksum mismatch.
1995-09-23 20:22:05 +00:00
Jim Meyering
1b16c152bd
(main): Reverse order of check' and compute sums' blocks in if-else
...
chain to make it a little more readable.
1995-09-20 12:47:37 +00:00
Jim Meyering
0e15d57a89
Rewrite confusing comment.
1995-09-19 12:59:49 +00:00