Commit Graph
14506 Commits
Author SHA1 Message Date
Jim Meyering 072b27d4d2 (usage): Note that ``Mandatory arguments to long options are mandatory
for short options too.''
2001-11-23 20:29:56 +00:00
Jim Meyering 27fc27695b *** empty log message *** 2001-11-23 20:11:43 +00:00
Jim Meyering 44fc00b79c (usage): Use output', not print' in description of
the --version option, so this message is consistent with all the rest.
2001-11-23 20:11:34 +00:00
Jim Meyering b78de3e724 Split usage strings so that --help and --version
descriptions are alone in their own string.
2001-11-23 20:10:25 +00:00
Jim Meyering faf0e1a16e *** empty log message *** 2001-11-23 20:03:52 +00:00
Jim Meyering 909dc8c01d Factor out some common strings to make translation easier.
Split usage strings so that --help and --version descriptions are alone
in their own string.
Likewise for the one that says:
  Mandatory arguments to long options are mandatory for short options too.
2001-11-23 19:58:23 +00:00
Jim Meyering 6f468fedb4 (main): Don't split string in the middle of sentence. 2001-11-23 18:45:32 +00:00
Jim Meyering a5f1ced62a (usage): Split --help output into smaller pieces.
Use fputs, not printf.
2001-11-23 15:41:16 +00:00
Jim Meyering 2e55f17398 *** empty log message *** 2001-11-23 08:11:49 +00:00
Jim Meyering 4d13e6fa55 Use opaque type, Hash_table, not `struct hash_table'. 2001-11-23 08:10:49 +00:00
Jim Meyering e38b3095cb (struct hash_table): Don't define here. Merely declare it. 2001-11-23 08:09:31 +00:00
Jim Meyering c759590c03 (struct hash_table): Define it here instead. 2001-11-23 08:09:14 +00:00
Jim Meyering 647185eda4 *** empty log message *** 2001-11-22 19:54:23 +00:00
Jim Meyering 0764c7eb69 *** empty log message *** 2001-11-22 19:50:48 +00:00
Jim Meyering 3856e7a1c1 *** empty log message *** 2001-11-22 19:49:07 +00:00
Jim Meyering 669102ec61 (cp_option_init): Likewise.
(do_copy): Call src_info_init.
2001-11-22 19:49:01 +00:00
Jim Meyering a2e185c904 (cp_option_init): Initialize new member. 2001-11-22 19:48:17 +00:00
Jim Meyering 039ff08371 (struct cp_options) [src_info]: New member.
(src_info_init): Declare.
2001-11-22 19:47:58 +00:00
Jim Meyering 507e4c7e69 (triple_hash_no_name): New function.
(src_info_init): New function.
(copy_internal): Warn and return early for the second and subsequent
occurrences of the same source file named on the command line.
2001-11-22 19:45:27 +00:00
Jim Meyering 8529df5a59 . 2001-11-22 15:58:06 +00:00
Jim Meyering 52be7173c0 *** empty log message *** 2001-11-22 15:50:25 +00:00
Jim Meyering 746246f20f more tests 2001-11-22 15:49:32 +00:00
Jim Meyering 8faf6cb717 *** empty log message *** 2001-11-22 14:06:46 +00:00
Jim Meyering e093b77bfb (TESTS): Add dup-source. 2001-11-22 14:06:31 +00:00
Jim Meyering 25170852d7 *** empty log message *** 2001-11-22 13:03:50 +00:00
Jim Meyering 7a0fd15ee7 (seen_file): Change type of `stats' parameter to pointer.
(copy_internal): Update caller.
2001-11-22 12:25:09 +00:00
Jim Meyering 31bfafc32e (struct F_triple): Rename from dest_info.
(seen_file): Rename from seen_dest.  Rename parameters accordingly.
(record_file): Rename from record_dest.  Rename parameters accordingly.
(triple_hash): Rename from dest_info_hash.
(triple_compare): Rename from dest_info_compare.
(triple_free): Rename from dest_info_free.
2001-11-22 12:22:46 +00:00
Jim Meyering 554f8ec02f . TEXTUTILS-2_0_17 2001-11-22 10:58:01 +00:00
Jim Meyering 3364b4a289 *** empty log message *** 2001-11-22 10:57:42 +00:00
Jim Meyering 988d9b05dd (main): Add a literal format string to suppress
a warning from gcc's -Wformat-security.
2001-11-22 10:57:27 +00:00
Jim Meyering c531932fd2 *** empty log message *** 2001-11-22 10:56:01 +00:00
Jim Meyering c5ad355677 (cp_option_init): Initialize new member.
(do_copy): Remove const attribute from declaration of parameter, x.
dest_info_init now takes a parameter.
2001-11-22 10:55:40 +00:00
Jim Meyering 42ad428793 (cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:31 +00:00
Jim Meyering 8cd4321b8b (cp_option_init): Initialize new member.
(main): dest_info_init now takes a parameter.
2001-11-22 10:54:05 +00:00
Jim Meyering 6b5ddbc2c9 Include hash.h.
(struct cp_options) [dest_info]: New member.
2001-11-22 10:52:40 +00:00
Jim Meyering 6f1ebf7e68 copy.c shouldn't maintain static state.
(dest_info): Remove declaration of file-scoped global.
(dest_info_init): Require a parameter.
Update all callers.
(seen_dest): Require a hash table parameter.  Update callers.
(record_dest): Likewise.
2001-11-22 10:52:15 +00:00
Jim Meyering 2bcf0bd3f3 Bracket contents of file with #ifndef HASH_H_ ... #endif. 2001-11-22 10:38:49 +00:00
Jim Meyering 7b94e62e37 . 2001-11-22 10:10:00 +00:00
Jim Meyering 94bdbcb500 *** empty log message *** 2001-11-22 10:09:13 +00:00
Jim Meyering 3723d62e4f . 2001-11-22 10:04:10 +00:00
Jim Meyering fe8cf19c6b . 2001-11-22 09:31:30 +00:00
Jim Meyering cf9b64e697 *** empty log message *** 2001-11-22 09:05:26 +00:00
Jim Meyering c36eeadd49 csplit could get a failed assertion: printf 'a\n\n'|csplit - '/^$/' 2
No longer include assert.h.
(process_line_count): Remove invalid assertion.
2001-11-22 09:01:39 +00:00
Jim Meyering a76c54f4c1 *** empty log message *** 2001-11-22 09:00:52 +00:00
Jim Meyering cc76ce042c *** empty log message *** 2001-11-22 08:50:58 +00:00
Jim Meyering 5d0c6e59ac *** empty log message *** 2001-11-22 08:46:23 +00:00
Jim Meyering d62d8770a6 *** empty log message *** 2001-11-22 08:44:49 +00:00
Jim Meyering 84d2cd2820 (TESTS): Add csplit. 2001-11-22 08:40:37 +00:00
Jim Meyering a4f4371389 *** empty log message *** 2001-11-22 08:20:49 +00:00
Jim Meyering 4c7e4c094e *** empty log message *** 2001-11-20 10:38:47 +00:00