Jim Meyering
aa084c8407
Protoize.
1995-11-02 17:08:24 +00:00
Jim Meyering
ac821ab1ef
Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-11-02 17:06:52 +00:00
Jim Meyering
6e146d4216
(isdigits, convint): Remove these.
...
(main): Use xstrtol instead.
1995-10-31 12:52:29 +00:00
Jim Meyering
aa6cde5ca1
Add `const' attribute to some parameters.
1995-10-31 12:39:18 +00:00
Jim Meyering
05a5e42609
protoize.
1995-10-31 12:36:43 +00:00
Jim Meyering
11a013bf87
Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-10-31 12:34:48 +00:00
Jim Meyering
de4de17bc5
(usage, next_line_num, main): Protoize.
1995-10-31 02:22:23 +00:00
Jim Meyering
b0302bb3a6
Add `const' attribute to some parameters.
1995-10-31 02:21:37 +00:00
Jim Meyering
334f8dcbb7
Add `const' attribute to some parameters.
1995-10-31 02:21:13 +00:00
Jim Meyering
47eaf4a1e8
Protoize.
1995-10-30 21:01:35 +00:00
Jim Meyering
1e30b2f8c4
Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-10-30 21:00:36 +00:00
Jim Meyering
f05befc26c
(copy): Update one of the calls to eaccess_stat to use 3 arguments. Ugh!
1995-10-30 17:53:48 +00:00
Jim Meyering
40f0f4d2e8
(xwrite): Give output buffer parameter const attribute.
...
(output): Likewise for both parameters.
(tac): Likewise for file name parameter.
(tac_file): Likewise.
1995-10-29 20:38:01 +00:00
Jim Meyering
4fa07774d6
protoize.
1995-10-29 20:35:11 +00:00
Jim Meyering
7567c84e76
Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-10-29 20:33:04 +00:00
Jim Meyering
a87c771012
(bsd_sum_file): Give file name parameter const attribute.
...
(sysv_sum_file): Likewise.
1995-10-29 20:24:53 +00:00
Jim Meyering
a2535fc95f
Protoize.
1995-10-29 20:20:08 +00:00
Jim Meyering
d2aaf842b4
(main): Move function body to end of file.
...
Remove forward dcls.
1995-10-29 20:19:26 +00:00
Jim Meyering
13e93efe91
(nl_file): Give parameter const attribute.
...
Protoize.
1995-10-29 20:15:54 +00:00
Jim Meyering
af1033c63c
Reorder functions to obviate forward dcls.
...
Remove forward dcls.
1995-10-29 20:12:32 +00:00
Jim Meyering
768f92072f
(main): Move function body to end of file.
...
Remove forward dcls and protoize.
1995-10-29 20:05:29 +00:00
Jim Meyering
8b92864e1d
Rename --file to --reference.
...
Leave --file as an alias, for now. It will be removed later.
(usage): Update, but don't mention --file.
1995-10-29 19:29:19 +00:00
Jim Meyering
b1c9ce6621
[TEST_STANDALONE]: Define.
1995-10-29 19:20:36 +00:00
Jim Meyering
c5716550a6
(md5_check): Use the same message format when the single file has a
...
read error or checksum mismatch as when there are more.
Write diagnostic to stderr, not stdout.
1995-10-28 21:01:01 +00:00
Jim Meyering
013277d331
New option --reference=FILE (-r FILE) analogous to the
...
like-named touch option.
(main): Recognize it and give diagnostic for misuse.
(usage): Describe briefly.
From Franc,ois Pinard.
(batch_convert): Close input stream also when it's not stdin.
(main): Reorganize to do option-consistency checks before all else.
1995-10-28 05:52:24 +00:00
Jim Meyering
ca59b76b50
(batch_convert): Close input stream also when it's not stdin.
1995-10-27 15:12:31 +00:00
Jim Meyering
b9485b8d52
(main): Use xfopen, not xtmpopen to open final output file.
1995-10-26 13:20:25 +00:00
Jim Meyering
66b9285a6f
(xtmpfopen): New function -- for opening temp files.
...
Use it instead of xfopen.
1995-10-26 13:19:10 +00:00
Jim Meyering
039942bfc1
(xfopen): Rewrite using open/fdopen in order to set
...
proper permissions on temporary files. Reported by Erik Corry
(erik@kroete2.freinet.de ).
1995-10-26 05:14:41 +00:00
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