Paul Eggert
08eeecbbbb
(ptr_align): Use size_t; in practice, this is just as
...
good as uintptr_t in checking for alignments, and has fewer
configuration hassles.
2004-08-02 05:26:19 +00:00
Paul Eggert
45e8d9f87b
(UINT_MAX_32_BITS): Remove.
...
(word32): Remove. All uses changed to uint32_t.
(isaac_seed_data): Remove unnecessary cast.
2004-08-02 05:26:01 +00:00
Paul Eggert
2c223a305b
(hash_int) [!defined UINTPTR_MAX]: Use size_t instead of uintptr_t.
2004-08-02 05:25:33 +00:00
Paul Eggert
caef677896
Initial revision.
2004-08-02 05:24:47 +00:00
Paul Eggert
46791e4ae4
(gl_MD5): Require gl_AC_TYPE_UINT32_T.
2004-08-02 05:23:39 +00:00
Paul Eggert
fd35412abb
(gl_CHECK_ALL_TYPES):
...
Require gl_AC_TYPE_UINTPTR_T instead of using AC_CHECK_TYPE
on uintptr_t. Require gl_AC_TYPE_UINT32_T.
2004-08-02 05:22:57 +00:00
Paul Eggert
deda01980f
(UNALIGNED_P): Use size_t; in practice, this is just as
...
good as uintptr_t in checking for alignments, and has fewer
configuration hassles.
2004-08-02 05:22:22 +00:00
Paul Eggert
5682fe455f
Don't include inttypes.h or stdint.h.
...
(UNALIGNED_P): Remove.
(__memrchr): Use size_t, not uintptr_t, to test alignment.
2004-08-02 05:21:47 +00:00
Paul Eggert
b6f35b5d52
Don't include inttypes.h or stdint.h.
...
(UNALIGNED_P): Remove.
(__memchr): Use size_t, not uintptr_t, to test alignment.
2004-08-02 05:21:12 +00:00
Paul Eggert
90cfcabe95
Don't include <limits.h>. Include <inttypes.h> if available,
...
as it defines symbols like UINT32_MAX on Solaris 8.
(md5_uint32): Assume uint32_t exists; Autoconf will define it
otherwise (if the host has a 32-bit unsigned type, anyway).
2004-08-02 05:20:05 +00:00
Paul Eggert
aa0a7d5865
(UNALIGNED_P): Use size_t; in practice, this is just as
...
good as uintptr_t in checking for alignments, and has fewer
configuration hassles.
2004-08-02 05:19:30 +00:00
Paul Eggert
7d66365bcf
Fix typo: down -> done.
2004-08-01 15:21:56 +00:00
Paul Eggert
6c7be35e86
* src/Makefile.am (localedir.h): Make it readonly.
2004-08-01 15:19:02 +00:00
Paul Eggert
bb1e87735e
(localedir.h): Make it readonly; this
...
undoes part of the 2004-07-27 patch.
2004-08-01 15:18:29 +00:00
Paul Eggert
94732c8a71
Improve comment for first_same_file.
2004-07-30 23:24:03 +00:00
Paul Eggert
55710cf6e1
sort, system.h, tr int cleanup
2004-07-30 21:09:04 +00:00
Paul Eggert
7eb95094d3
(to_uchar): Remove; now in system.h.
...
(is_char_class_member): Use bool when appropriate.
2004-07-30 21:08:48 +00:00
Paul Eggert
67bfd37c8b
(errno, CHAR_BIT): Remove decls;
...
no longer needed now we assume C89 or better.
Include <inttypes.h> before <stdint.h>, as it's the Autoconf-recommended pattern.
(to_uchar): New inline function, moved here from tr.c.
Use full names for int types, e.g. "long int" rather than "long".
2004-07-30 21:08:25 +00:00
Paul Eggert
9023219a73
(UCHAR): Remove; all uses changed to to_uchar.
...
(IS_THOUSANDS_SEP): Use bool when appropriate.
(numcompare, main): Use char, not int, when the value is always a char.
(numcompare): Remove "register"; compilers are smart enough these days.
2004-07-30 21:08:02 +00:00
Paul Eggert
294eb3b508
makepath int cleanup
2004-07-30 20:30:39 +00:00
Paul Eggert
d087f16e7f
mkdir.c int cleanup.
2004-07-30 20:30:18 +00:00
Paul Eggert
5c53a006eb
(create_parents, main): Use bool when appropriate.
...
(main): Use EXIT_SUCCESS/EXIT_FAILURE instead of 0/1.
2004-07-30 20:29:29 +00:00
Paul Eggert
21e05084ac
(make_path, make_dir): Use bool, not int, since we're not setting errno.
...
Use mode_t for modes, not int. All uses changed.
(errno): Remove decl; no longer needed since we assume C89.
2004-07-30 20:29:01 +00:00
Paul Eggert
b90519d9f9
Include <stdbool.h>.
...
(make_path, make_dir): Use bool, not int, since we're not setting errno.
Use mode_t for modes, not int. All uses changed.
2004-07-30 20:28:13 +00:00
Paul Eggert
d41b0c05ba
modechange.c now uses bool.
2004-07-30 08:02:27 +00:00
Paul Eggert
48ed3f3692
int cleanups for chmod, rm, cp, install, mkfifo.
2004-07-30 08:01:38 +00:00
Paul Eggert
a586795939
(main): Use EXIT_SUCCESS and EXIT_FAILURE, not 0 and 1.
2004-07-30 08:00:40 +00:00
Paul Eggert
35c0c98c7d
(right_justify), full_filename_, AD_pop_and_chdir,
...
AD_push, prompt, remove_dir): Use bool when appropriate.
(top_dir, pop_dir, full_filename_):
Use size_t for sizes.
2004-07-30 08:00:02 +00:00
Paul Eggert
aed86808d9
(rm_option_init, main): Use bool when appropriate.
...
(main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-07-30 07:59:19 +00:00
Paul Eggert
bbed0ba2e3
(remove_trailing_slashes, rm_option_init,
...
cp_option_init, do_move, movefile, main): Likewise.
* src/remove.c (right_justify), full_filename_, AD_pop_and_chdir,
AD_push, prompt, remove_dir): Likewise.
2004-07-30 07:58:07 +00:00
Paul Eggert
0892ed97a6
(isdir, change_timestamps, change_attributes,
...
copy_file, install_file_to_path, install_file_in_dir,
install_file_in_file, strip_files, dir_arg, cp_option_init, main,
change_attributes, change_timestamps): Likewise.
2004-07-30 07:57:50 +00:00
Paul Eggert
f3b9ba46f8
(struct dir_attr, flag_path, remove_trailing_slashes,
...
re_protect, make_path_private, target_directory_operand, do_copy,
cp_option_init, decode_preserve_arg, main): Use bool when appropriate.
(target_directory_operand): Do not clear *NEW_DST if stat
succeeds. It's not necessary in that case, as *NEW_DST is always
false already.
(do_copy): Rewrite slightly to avoid need for "unreachable" comment.
(main): Use EXIT_SUCCESS, EXIT_FAILURE instead of 0, 1.
2004-07-30 07:57:27 +00:00
Paul Eggert
89c5dddb8f
(remember_created): Use bool when appropriate.
2004-07-30 07:55:59 +00:00
Paul Eggert
1c9f7316d2
(remember_created): Use bool when appropriate.
2004-07-30 07:55:33 +00:00
Paul Eggert
49eaeaf611
(copy_internal, is_ancestor, copy_dir, copy_reg,
...
same_file_ok, seen_file, copy_internal, valid_options, copy):
Use bool when appropriate.
2004-07-30 07:51:59 +00:00
Paul Eggert
dabfc733f7
(struct cp_options): Use bool when appropriate.
2004-07-30 07:49:39 +00:00
Paul Eggert
e61348619a
(hard_LC_COLLATE, only_file_1, only_file_2, both, compare_files, main):
...
Use bool when appropriate.
2004-07-30 05:25:17 +00:00
Paul Eggert
299d98cfe2
(cksum, main): Use bool when appropriate.
2004-07-30 04:12:25 +00:00
Paul Eggert
f232dfa081
(recurse, force_silent, process_file, process_files, main): Use bool
...
when appropriate.
2004-07-30 04:06:41 +00:00
Paul Eggert
6d02317a83
Update copyright.
2004-07-30 04:06:16 +00:00
Paul Eggert
f9663b8c83
Include <stdbool.h>.
...
(mode_compile): Use bool when appropriate.
2004-07-30 04:05:50 +00:00
Paul Eggert
0d812118fa
md5sum, sha1sum integer cleanups.
2004-07-30 00:55:09 +00:00
Paul Eggert
577caa4da2
(OPENOPTS, have_read_stdin, status_only, warn,
...
bsd_split_3, split_3, hex_digits, digest_file, digest_check, main):
Use bool when appropriate.
(digest_check): Increase limit of number of input lines to
UINTMAX_MAX from INT_MAX. Diagnose any overflows of this counter.
Use ngettext instead of hard-to-i18nize hardcoded stuff for plurals.
2004-07-30 00:54:44 +00:00
Paul Eggert
bd20ce2bad
Don't include any files other than checksum.h.
2004-07-30 00:54:02 +00:00
Paul Eggert
286aff1fe6
Don't include config.h, sys/types.h, stdio.h: not needed.
...
(ALG_UNSPECIFIED): Remove.
(ALG_MDT): Don't make it equal to CHAR_MAX + 1; this isn't necessary.
2004-07-30 00:53:49 +00:00
Paul Eggert
a8faa974c4
md5sum and sha1sum overflow detection.
2004-07-30 00:53:23 +00:00
Paul Eggert
ac63cc6b0f
Fix copyright year.
2004-07-30 00:40:40 +00:00
Paul Eggert
14508bd891
Use sizeof, not alignof, in memchr and memrchr.
2004-07-29 17:34:38 +00:00
Paul Eggert
f03b0c3060
(UNALIGNED_P): Use sizeof, not alignof.
2004-07-29 17:34:20 +00:00
Paul Eggert
3a7060d519
(UNALIGNED_P): Use sizeof, not alignof.
2004-07-29 17:33:38 +00:00