Jim Meyering
695b9df0ec
indent
1997-10-16 15:34:26 +00:00
Jim Meyering
1a68cff356
Add comments. From Orn.
1997-10-16 15:29:15 +00:00
Jim Meyering
acf88c6fa8
add assertions
1997-10-16 15:03:54 +00:00
Jim Meyering
f015b15dc9
(look_for_fraction): Patch from Orn Hansen.
...
(getmonth): Compare the two month names only to the length of the
string in the month table. Patch from Orn Hansen.
(NLS_STRNCMP): New macro.
(strncoll_s2_readonly): New function.
(inittables): Don't use temporary `comp' to hide type of comparator function.
(nls_sort_month_comp): Declare parameters to be void* to match
comparator function type required for qsort.
(getmonth): Use NLS_STRNCMP rather than #ifdef.
Use do-while, rather than while-loop.
1997-10-16 14:54:58 +00:00
Jim Meyering
e803da432b
begin merging Orn's changes
1997-10-16 13:12:13 +00:00
Jim Meyering
1ab25ef4a1
(_NL_ITEM) [!defined]: Define.
...
From from Ørn E. Hansen.
1997-10-15 05:00:33 +00:00
Jim Meyering
55707840f3
Remove ChangeLog entry from Orn.
1997-10-14 22:33:20 +00:00
Jim Meyering
8d3d73c573
Use STREQ in place of most uses of strcmp.
...
(zaptemp): Make parameter `const'.
1997-10-14 22:32:44 +00:00
Jim Meyering
2bb1be5ca0
(NLS_STRCMP): Define.
...
(getmonth): Remove ifdef and use NLS_STRCMP instead.
Use HAVE_ALLOCA, not _HAVE_ALLOCA.
1997-10-14 22:25:02 +00:00
Jim Meyering
0fa42caea6
(CHARS_IN_ABM): Remove definition
...
(inittables): Remove assumption that all abbreviated month names have
length 3.
(getmonth): Likewise.
(main): Add #if's for more efficient code when using the GNU C library.
From Ulrich Drepper.
1997-10-14 21:36:33 +00:00
Jim Meyering
69c54c088c
tweak Orn's fraccompare. Always use it.
1997-10-14 20:41:28 +00:00
Jim Meyering
bf5606ff49
(fraccompare): Indent.
...
Move dcls of S and N into if block.
1997-10-14 14:12:48 +00:00
Jim Meyering
3f7506491b
fix spelling errors in comments
1997-10-14 13:47:22 +00:00
Jim Meyering
8c96da80b0
(keycompare): Move assignment out of if-expression.
1997-10-14 13:40:51 +00:00
Jim Meyering
df3a123e85
(strncoll): Rename parameter to LEN.
...
Clean up formatting.
Add a FIXME.
1997-10-14 13:37:35 +00:00
Jim Meyering
7fff797d97
Declare xstrdup.
...
(my_setlocale): New function.
(main): Guard against failure of strdup (use xstrdup) and setlocale.
1997-10-14 13:07:12 +00:00
Jim Meyering
42a2bc2846
(STREQ): Remove definition.
1997-10-14 12:50:28 +00:00
Jim Meyering
b2ff7dd7c5
[patch from Orn]
...
(look_for_fraction): Eliminate arbitrary limit on
number of `groups'. Declare as void, not int.
Patch from Ørn E. Hansen.
(main): When determining whether we're in the C or POSIX locale,
don't rely on the form of the string returned by setlocale.
Suggestion from Ulrich Drepper.
1997-10-14 12:19:09 +00:00
Jim Meyering
a41c38cb7d
Bracket inclusion of termios.h with #ifdef HAVE_TERMIOS_H.
...
Masami Takikawa reported that this is necessary on NeXTStep 3.0 systems.
1997-10-13 14:08:38 +00:00
Jim Meyering
2c32c6a11a
eliminate a comma expr,
...
fix one func return type
eliminate `* 1'
1997-10-13 04:02:42 +00:00
Jim Meyering
b01df13c39
(NLS_MAP): Remove unused definitions.
...
Replace with uses of UCHAR.
(nls_locale_map): Remove dcl of unused file-scope array.
1997-10-13 03:52:35 +00:00
Jim Meyering
3616231d94
(NLS_MEMCMP): Define.
...
(keycompare): Use it instead of open-coded #ifdefs.
(compare): Likewise.
1997-10-13 03:48:58 +00:00
Jim Meyering
b7e7317be0
indent and clean up some more
1997-10-13 03:37:16 +00:00
Jim Meyering
045d8da585
Indent some more.
...
#ifdef ENABLE_NLS th NLS part of insertkey.
1997-10-13 03:26:39 +00:00
Jim Meyering
0ac3a6acde
indent and add FIXME comments
1997-10-13 03:12:17 +00:00
Jim Meyering
9ee502b57d
filter through cppi
1997-10-13 02:08:30 +00:00
Jim Meyering
79bfec7ced
Apply big patch from Ørn E. Hansen.
1997-10-13 02:08:01 +00:00
Jim Meyering
3ea2606e41
indent cpp directives to reflect nesting
1997-10-07 23:58:29 +00:00
Jim Meyering
3f3f566627
update bug-reporting address
1997-10-07 23:55:52 +00:00
Jim Meyering
05bbdbd786
update bug-reporting address
1997-10-07 23:53:36 +00:00
Jim Meyering
54abd85010
update bug-reporting address
1997-10-07 23:53:10 +00:00
Jim Meyering
5db3c9bdb4
update bug-reporting address
1997-10-07 23:51:39 +00:00
Jim Meyering
e5549867e2
change verbose messages
1997-10-06 13:30:14 +00:00
Jim Meyering
2e1d300fe5
(usage): Add a line describing --verbose.
1997-10-06 13:09:28 +00:00
Jim Meyering
f8265dd3d8
*** empty log message ***
1997-10-06 05:25:59 +00:00
Jim Meyering
48f0a08332
fix braino
1997-10-06 05:23:49 +00:00
Jim Meyering
7bff8c9b50
(struct cp_options): New field: require_preserve.
1997-10-06 04:58:26 +00:00
Jim Meyering
eb2947bbbd
(cp_option_init): Initialize it.
...
(main): Set to 1 for -a and for -p.
1997-10-06 04:58:05 +00:00
Jim Meyering
fe12b67113
(copy_internal): Use require_preserve.
1997-10-06 04:57:40 +00:00
Jim Meyering
03ae2c6b97
Remove old-style savedir dcl.
...
Include savedir.h for prototype.
1997-10-04 01:57:12 +00:00
Jim Meyering
3445d47a10
Remove old-style savedir dcl.
...
Include savedir.h for prototype.
1997-10-04 01:56:23 +00:00
Jim Meyering
a8cf858306
(fspec_init_dp): Use DTTOIF. Fix syntax error in code
...
that gets compiled on BSDI3.0 systems.
1997-10-03 02:44:33 +00:00
Jim Meyering
de2517a1f4
(remove_dir): Update old comment.
1997-09-28 03:51:00 +00:00
Jim Meyering
4a32d010ef
[enum RM_status]: Remove `= 2'. Add comment.
...
(dir_stack): Describe.
(remove_file): Revert s/fprintf/error/ change. We don't want newlines at
end of prompt strings.
(remove_dir): Likewise.
1997-09-28 03:47:53 +00:00
Jim Meyering
3e90df41a9
tweak comment
1997-09-27 23:45:54 +00:00
Jim Meyering
b7bfc2d2a2
Make echo conform to POSIX. By default, don't
...
interpret backslash escape sequences.
[V9_DEFAULT]: Don't #define.
(usage): Document -e option.
(main): Recognize options iff POSIXLY_CORRECT is not set.
From Bruno Haible.
1997-09-25 12:58:50 +00:00
Jim Meyering
aa298d7bbe
[struct tspec] (hexl_mode_trailer): Rename from `trailer.'
...
(dump_hexl_mode_trailer): Rename from dump_string_trailer.
Use fputs and putchar instead of trivial or %-less printfs.
(decode_one_format): Parenthesize each field_width assignment in an
argument list to make the side effect a little more apparent.
(write_block): Use fputs and putchar instead of trivial or %-less printfs.
(dump_strings): Cast string_min to off_t to avoid long-standing warning.
1997-09-22 04:59:57 +00:00
Jim Meyering
f1e4f5cf82
Patch from John Kodis.
1997-09-21 20:23:58 +00:00
Jim Meyering
fc802521f3
Use hash.c (chaining) functions, not those of oa-hash.c
...
(open addressing). The latter implementation is wonderful when
deletions are rare, but doen't support the frequent deletions
required to implement the active directory set.
1997-09-21 04:53:14 +00:00
Jim Meyering
4d09de4e63
(main): Call parse_long_options only if POSIXLY_CORRECT
...
is *not* set. Reported by Frank T Lofaro.
1997-09-17 13:04:31 +00:00