Jim Meyering
4842565b62
[!HAVE_MEMPCPY] (mempcpy): Define.
...
(batch_convert): Use mempcpy rather than stpcpy.
1997-11-12 16:28:06 +00:00
Jim Meyering
979f238fb3
(fseeko): Define a stub if ! HAVE_FSEEKO.
...
(skip): Use fseeko if available. Don't use lseek; it causes
the stdio stream to become out of sync with respect to the
underyling file descriptor.
From Paul Eggert.
1997-11-08 21:02:01 +00:00
Jim Meyering
7417f884af
(keycompare): call alloca(0) after each iteration
1997-11-08 04:47:17 +00:00
Jim Meyering
36ce9a1c1c
use 2 mempcpy instead of two memcpy calls
1997-11-08 02:59:16 +00:00
Jim Meyering
a313a7d147
(getmonth): Remove HAVE_ALLOCA #ifdefs.
...
We always have alloca.
(keycompare): Don't use variable size arrays (it's a gcc-extension).
Rewrite code that increments new lengths when not `ignoring'.
1997-11-06 14:37:34 +00:00
Jim Meyering
ab5ff1597f
(main): New option, --max-line-length (-L).
...
(wc, write_counts): Implement it.
From Bruno Haible.
1997-11-03 05:08:36 +00:00
Jim Meyering
1b3376c9da
Put cycle-detecting code inside an
...
#ifdef ENABLE_CYCLE_CHECK, for systems lacking d_ino.
[D_INO_IN_DIRENT]: Define ENABLE_CYCLE_CHECK.
(ASSIGN_STRDUPA): Clean up.
(right_justify): Use memcpy return value directly.
Suggestions from Ulrich Drepper.
(remove_cwd_entries) [! defined HAVE_WORKING_READDIR]: Impose overhead
of working around non-POSIX readdir implementation only on systems
that need it.
(remove_cwd_entries): Temporarily save a copy of each entry name in
an obstack rather than on the stack via alloca, then free it in the
likely event that we don't save the entry in the hash table.
1997-11-03 04:22:57 +00:00
Jim Meyering
0b5e948104
Guard cycle-detecting code inside #ifdef ENABLE_CYCLE_CHECK.
...
[D_INO_IN_DIRENT]: Define ENABLE_CYCLE_CHECK.
1997-10-28 00:55:11 +00:00
Jim Meyering
94c4bdd4c8
fix typo in comment
1997-10-27 03:22:01 +00:00
Jim Meyering
910c82eff8
(NLS_STRNCMP) [!ENABLE_NLS]: s/strcmp/strncmp/
1997-10-26 04:42:02 +00:00
Jim Meyering
df445b0891
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:55 +00:00
Jim Meyering
b3ab88e970
Remove old-style xmalloc and xrealloc decls.
1997-10-25 22:03:20 +00:00
Jim Meyering
e2609be248
Include xalloc.h.
...
Remove dcls of xmalloc, xcalloc and xrealloc.
1997-10-25 22:01:13 +00:00
Jim Meyering
123a921fc2
s/xmalloc_exit_failure/xalloc_exit_failure
1997-10-25 21:52:09 +00:00
Jim Meyering
e211bb2aff
Remove old-style xmalloc and xrealloc decls.
1997-10-25 04:45:43 +00:00
Jim Meyering
cfcb7f0117
Remove old-style xmalloc and xrealloc decls.
...
(add_tabstop): Cast first arg of xrealloc to char*.
1997-10-25 04:44:00 +00:00
Jim Meyering
0927513b16
Include xalloc.h.
...
(xmalloc): Remove function.
(xrealloc): Remove function.
(main): Set xalloc_fail_func to cleanup.
Set xmalloc_exit_failure SORT_FAILURE.
1997-10-25 04:43:10 +00:00
Jim Meyering
0873056df7
Remove old-style xmalloc and xrealloc decls.
...
(paste_parallel): Cast first arg of xrealloc to char*.
1997-10-25 04:42:15 +00:00
Jim Meyering
b480949713
Remove old-style xmalloc and xrealloc decls.
...
(decode_format_string): Cast first arg of xrealloc to char*.
1997-10-25 04:41:18 +00:00
Jim Meyering
f4ae4ca4ef
Remove old-style xmalloc and xrealloc decls.
...
(add_tabstop): Cast first arg of xrealloc to char*.
1997-10-25 04:40:28 +00:00
Jim Meyering
a0b56b516a
Include xalloc.h.
...
(xmalloc): Remove function.
(xrealloc): Remove function.
(main): Set xalloc_fail_func to cleanup.
1997-10-25 04:38:58 +00:00
Jim Meyering
7dcae67d92
(ADD_RANGE_PAIR): Cast first arg of xrealloc to char*.
...
(getstr): Cast xmalloc return value to char*.
(xmalloc): Remove decl.
(xrealloc): Remove decl.
1997-10-25 04:37:57 +00:00
Jim Meyering
339afbb210
[!HAVE_DECLARATION_FREE]: Declare free.
...
[!HAVE_DECLARATION_MALLOC]: Declare malloc.
[!HAVE_DECLARATION_REALLOC]: Declare realloc.
[!HAVE_DECLARATION_STPCPY]: Declare stpcpy.
[!HAVE_DECLARATION_STRSTR]: Declare strstr.
1997-10-23 16:07:31 +00:00
Jim Meyering
f4d8e10147
Remove stpcpy decl.
...
Remove free, malloc, and realloc decls.
1997-10-23 16:06:59 +00:00
Jim Meyering
9fec99f4a6
Remove free and malloc decls.
1997-10-23 16:06:19 +00:00
Jim Meyering
3faf14fe5c
Remove stpcpy decl.
...
Remove free and malloc decls.
1997-10-23 16:05:59 +00:00
Jim Meyering
eae64f3a4f
Remove stpcpy decl.
1997-10-23 16:04:47 +00:00
Jim Meyering
096b53e6c6
[STREQ]: Undef then redefine.
1997-10-23 15:57:54 +00:00
Jim Meyering
1f98316792
Remove strstr decl.
1997-10-23 15:57:36 +00:00
Jim Meyering
58e904c6fd
Remove stpcpy decl.
1997-10-23 15:57:21 +00:00
Jim Meyering
c7ba7d37a5
*** empty log message ***
1997-10-23 14:30:37 +00:00
Jim Meyering
e3d7071595
Remove stpcpy dcl.
1997-10-23 14:30:27 +00:00
Jim Meyering
00bc2c29ca
Remove malloc, and realloc dcls.
1997-10-23 14:30:14 +00:00
Jim Meyering
f11893c764
Remove free, malloc, and realloc dcls.
1997-10-23 14:30:03 +00:00
Jim Meyering
1aad2e1c4a
Remove malloc and realloc dcls.
1997-10-23 14:29:46 +00:00
Jim Meyering
d4899bad7e
Remove stpcpy dcl.
1997-10-23 14:28:31 +00:00
Jim Meyering
a7e650ac12
(remove_cwd_entries): Entries in table of processed dir
...
entries are not malloc'd, so don't have hash cleanup free them.
Rewind dirp upon NULL readdir, required for at least SunOS.
1997-10-19 03:09:40 +00:00
Jim Meyering
3fa5a54f68
(LONG_MAX): Define if not defined.
1997-10-18 19:49:50 +00:00
Jim Meyering
c555721842
(remove_cwd_entries): Change the while(dp...) to a while(1) loop,
...
and move dcl and assignment of dp into the loop.
1997-10-17 18:06:34 +00:00
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