Jim Meyering
e5839b5b28
remove trailing blanks
2004-11-11 09:19:42 +00:00
Paul Eggert
9d8ce0f399
Sync from gnulib.
2004-11-11 06:07:57 +00:00
Paul Eggert
d2b4386d29
Sync from gnulib.
2004-11-11 05:02:14 +00:00
Jim Meyering
f0dd13bca8
*** empty log message ***
2004-11-10 08:24:58 +00:00
Paul Eggert
443e4a9026
Sync from gnulib.
2004-11-09 20:54:43 +00:00
Jim Meyering
3b9295c319
*** empty log message ***
2004-11-09 20:31:46 +00:00
Jim Meyering
594d5064c9
[__APPLE__]: Include <mach/machine.h> and <mach-o/arch.h>.
...
(main) [__APPLE__]: Get the processor type via syscall rather than
hard-coding "powerpc". From toby@opendarwin.org .
2004-11-09 20:31:39 +00:00
Jim Meyering
15c10278a7
*** empty log message ***
2004-11-07 07:05:43 +00:00
Jim Meyering
4d223551d7
(merge): Remove declarations of now-unused variables.
2004-11-07 07:05:38 +00:00
Paul Eggert
faba9a39bc
* src/sort.c: Avoid some silly merges.
2004-11-06 23:47:13 +00:00
Paul Eggert
a31bc04af0
(first_same_file): Remove. Move most of the code to....
...
(avoid_trashing_input): New function.
(merge): Avoid some silly merges, e.g., copying a single file to
a temporary file when there are exactly 17 input files to merge.
Take a count of temporary files rather than a max_merge arg.
All uses changed.
2004-11-06 23:46:47 +00:00
Jim Meyering
7d354a1286
.
2004-11-06 22:46:44 +00:00
Jim Meyering
eee82e1382
remove now-unused files
2004-11-06 22:46:21 +00:00
Jim Meyering
569ae8c54b
.
2004-11-06 22:45:58 +00:00
Jim Meyering
37edf32068
(libfetish_a_SOURCES): Remove __fpending.h, now that it's no longer used.
2004-11-06 22:45:47 +00:00
Jim Meyering
b1635d809b
.
2004-11-06 22:44:56 +00:00
Jim Meyering
65a7fb91ae
remove now-unused file
2004-11-06 22:44:48 +00:00
Jim Meyering
23b19be323
Don't require gl_FUNC_FPENDING.
2004-11-06 22:44:14 +00:00
Jim Meyering
078c89bb76
*** empty log message ***
2004-11-06 22:37:28 +00:00
Jim Meyering
d77d7fe158
Ensure that no close failure goes unreported.
...
(close_stdout): Always close stdout. I.e., don't
return early when it seems there's nothing to flush.
Don't include __fpending.h.
2004-11-06 22:37:23 +00:00
Jim Meyering
d73a00981c
(xfclose): Don't close stdout here (just flush it),
...
since close_stdout now closes stdout unconditionally.
2004-11-06 22:37:02 +00:00
Paul Eggert
3e0f7c5dc3
* src/sort.c: Fixx size_t and alloca bugs.
2004-11-05 23:02:46 +00:00
Paul Eggert
8a0f42dff9
(inittables, sort_buffer_size, getmonth, mergefps,
...
first_same_file, merge, sort, main): Use size_t for indexes into arrays.
This fixes some unlikely havoc-wreaking bugs (e.g., more than INT_MAX
temporary files).
(getmonth, keycompare, compare): Rewrite to avoid need for alloca,
thus avoiding unchecked stack overflow in some cases. As a side
effect this improve the performance of "sort -M" by a factor of 4
on my benchmarks.
2004-11-05 23:02:09 +00:00
Paul Eggert
5312181e5b
Regenerate.
2004-11-04 00:02:19 +00:00
Jim Meyering
0753839f7a
remove trailing spaces
2004-11-03 23:31:20 +00:00
Paul Eggert
3b39a3022a
Log recent getdate-etc. related changes.
2004-11-03 23:25:32 +00:00
Paul Eggert
80b4895f7a
Sync from gnulib.
2004-11-03 23:24:07 +00:00
Paul Eggert
2c0b64899b
Include "vasprintf.h" since we use vasprintf now.
2004-11-03 23:17:29 +00:00
Paul Eggert
4b738e2f5d
Sync from gnulib.
2004-11-03 23:15:44 +00:00
Paul Eggert
90d6db1fbb
(check-AUTHORS): Don't assume \? works in a sed
...
expression; it's not portable. Problem reported by Albert Chin.
Don't invoke a program more than once.
2004-11-03 23:12:55 +00:00
Paul Eggert
fe92cc42b2
(version): New variable, containing author info,
...
for benefit of AUTHORS check. Use it when acting on --version option.
2004-11-03 23:11:45 +00:00
Paul Eggert
adff4ef93c
Remove duplicate lines. Remove bogus "chroot:" in groups line.
2004-11-03 23:10:50 +00:00
Paul Eggert
61619a55a5
(libfetish_a_SOURCES): Remove setenv.c.
2004-11-03 23:05:47 +00:00
Paul Eggert
b0c285c9da
New file, from gnulib.
2004-11-03 23:04:03 +00:00
Paul Eggert
abd8f84b4a
(gl_PREREQ): Require gt_FUNC_SETENV.
2004-11-03 23:03:17 +00:00
Jim Meyering
36ed808afb
.
2004-11-03 20:54:10 +00:00
Jim Meyering
fcd1aefe35
.
2004-11-03 20:53:32 +00:00
Paul Eggert
8655b4eabd
Don't #define and #undef getopt around <stdlib.h>,
...
as this breaks the new regime that does "#define getopt rpl_getopt".
2004-11-03 18:44:33 +00:00
Paul Eggert
2dff6afdde
* Makefile.am (_W, W_): New macros.
2004-11-03 17:39:23 +00:00
Paul Eggert
51bdc5fb8b
(_W, W_): New macros.
...
(check-texinfo): Use them instead of assuming grep -w (which is not portable).
Problem reported by Albert Chin.
2004-11-03 17:39:00 +00:00
Jim Meyering
29f1f2906c
(libfetish_a_SOURCES): Add setenv.c and setenv.h.
2004-11-03 09:20:23 +00:00
Jim Meyering
3c8d863cc6
remove trailing blanks
2004-11-03 08:54:51 +00:00
Jim Meyering
187d2d06e8
*** empty log message ***
2004-11-03 08:50:38 +00:00
Jim Meyering
9f6eecc987
quote(...) file names in diagnostics.
2004-11-03 08:50:11 +00:00
Paul Eggert
8d05798863
Import from gnulib.
2004-11-03 08:04:49 +00:00
Paul Eggert
da9f67dcf6
Regenerate.
2004-11-03 07:47:08 +00:00
Paul Eggert
5a5367474b
Sync from gnulib.
2004-11-03 07:44:15 +00:00
Paul Eggert
47bcfc54da
* NEWS: Document getdate changes.
2004-10-30 00:06:22 +00:00
Paul Eggert
a4f1136b52
Document getdate changes.
2004-10-30 00:05:00 +00:00
Paul Eggert
7babf896a7
Sync from gnulib (for getdate changes).
2004-10-29 23:46:23 +00:00