Jim Meyering
3008ad90f4
twiddle FSF address in comment.
1996-12-14 05:23:41 +00:00
Jim Meyering
8c5b30bc1e
(get_format_width, get_format_prec): Avoid
...
unnecessary comparison of digit to '\0'.
1996-12-14 05:22:46 +00:00
Jim Meyering
0d3f6a6665
(process_regexp): Update CURRENT_LINE only if
...
the new value would be larger. This avoids the infinite loop
otherwise provoked by situations like this:
printf "\na\n" | csplit - '/a/-1' '{*}'
From Jens Schmidt.
1996-11-23 02:32:10 +00:00
Jim Meyering
2e55854100
change bug-reporting address
1996-11-03 03:16:23 +00:00
Jim Meyering
17c0c658f1
change bug-reporting address
1996-11-02 20:44:52 +00:00
Jim Meyering
630b771f1b
(main): update --version output again
1996-10-04 04:25:46 +00:00
Jim Meyering
3361bd2bca
(main): update --version output to conform to coding standard
1996-10-04 04:15:08 +00:00
Jim Meyering
c609ba2d13
(usage): Tell where to report bugs.
1996-09-02 15:34:25 +00:00
Jim Meyering
59d334f4d4
update Copyright years for 1996
1996-04-24 04:50:53 +00:00
Jim Meyering
818d29db9b
Call error with EXIT_FAILURE (rather than `1') as first actual parameter.
1996-03-24 16:59:11 +00:00
Jim Meyering
47f70113d4
Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.
...
This doesn't change `error (1' calls.
1996-03-24 14:58:01 +00:00
Jim Meyering
7178674807
Include assert.h, but disable assertions.
...
(process_line_count): Replace if-abort with a slightly relaxed
assertion. Before, `echo |csplit - 1 1' would abort.
Reported by Samuli.Karkkainen@hut.fi .
(parse_patterns): Disallow uses like `csplit FILE 0' with zero
line number, `csplit FILE 2 1' with decreasing line numbers, and
warn about uses like `csplit FILE 3 3' that have equal line numbers.
1996-03-22 04:54:46 +00:00
Jim Meyering
adb7c216b2
(main): Declare to be of type int, not void.
1996-03-21 22:41:04 +00:00
Jim Meyering
4229a555fc
Don't include version.h.
...
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-16 22:30:54 +00:00
Jim Meyering
715765a548
(main): Initialize for internationalized message support: call setlocale,
...
bindtextdomain, and textdomain.
1996-03-09 20:19:13 +00:00
Jim Meyering
a7190a7381
(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.
...
From Andreas Schwab.
1995-12-31 04:10:13 +00:00
Jim Meyering
1f88c647cd
[!WITH_REGEX]: Include rx.h.
1995-12-06 23:39:26 +00:00
Jim Meyering
7956c15081
s/non-zero/nonzero/g
1995-11-27 03:09:18 +00:00
Jim Meyering
7b9ad5a22f
[!UINT_MAX]: Define.
...
[!INT_MAX]: Define.
Include xstrtoul.h.
(string_to_number): Remove function.
(check_for_offset): Use xstrtoul instead of string_to_number.
(parse_repeat_count): Likewise.
(parse_patterns): Likewise.
(main): Likewise.
1995-11-26 21:49:53 +00:00
Jim Meyering
1fbac54162
[__P]: Don't define it here.
1995-11-15 22:12:59 +00:00
Jim Meyering
b36e366ef4
(cleanup): Don't exit.
...
(cleanup_fatal): New functoin. Call cleanup, then exit.
(interrupt_handler): Rewrite to reset default signal handler
then repost caught signal.
(xmalloc, xrealloc, read_input, write_to_file, handle_line_error,
process_line_count, process_regexp, create_output_file, close_output_file):
Call cleanup_fatal, not cleanup.
Add const attribute to lots of parameters.
1995-11-15 05:32:28 +00:00
Jim Meyering
ce5f4177bc
Protect prototypes with __P.
1995-11-05 13:16:24 +00:00
Jim Meyering
48f3bca87e
Move prototypes after struct declarations.
...
Remove prototypes for xmalloc, xrealloc.
(new_control_record): Cast arg 1 to realloc.
1995-11-05 13:12:54 +00:00
Jim Meyering
adf0ec7008
Protoize.
1995-11-05 13:02:44 +00:00
Jim Meyering
2224409994
(close_output_file): Set output_stream to NULL so we don't recurse
...
endlessly between this function and cleanup.
1995-11-05 05:51:53 +00:00
Jim Meyering
a9de4d485a
Test SA_INTERRUPT, not _POSIX_VERSION,
...
to determine whether `sigaction' functions are available.
Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu >.
Fix suggested by Karl Berry.
1995-10-04 03:46:35 +00:00
Jim Meyering
92c50e7f52
Annotate localizable strings with _(...). From Franc,ois.
1995-08-07 14:57:29 +00:00
Jim Meyering
7732d5d7cf
(main): When too few arguments are given, don't just
...
issue the usage message; also report why.
1995-07-25 04:50:04 +00:00
Jim Meyering
5cd7a18539
(read_input): Rename paramater MAX to MAX_N_BYTES. To avoid potential
...
conflict with max macro from some system's header files and bad pre-ANSI
compilers.
1995-06-24 21:07:55 +00:00
Jim Meyering
3f76720636
(interrupt_handler): Declare to have a single integer
...
parameter. Otherwise, some compilers failed with a type mismatch
error in sa_handler assignment.
1995-06-22 03:59:27 +00:00
Jim Meyering
6ebaf82426
merge with 1.12
1995-06-18 19:33:31 +00:00
Jim Meyering
1bca766a5d
[struct control]: Change type of `repeat' member to unsigned
...
long to avoid conversion warning.
1995-05-25 05:09:50 +00:00
Jim Meyering
c253f9ba51
(record_line_starts): Remove set-but-not-used, file-scope variable.
1995-05-19 15:59:40 +00:00
Jim Meyering
7cdc7a0bd9
(usage): Include one- or two-line synopsis in --help output.
...
From Karl Berry.
1995-05-13 18:34:54 +00:00
Jim Meyering
ebaf614a13
Declare as unsigned int' all variables that were just unsigned'.
...
(make_filename): Change type of arg to unsigned int.
(split_file): Change type of indices to unsigned int.
1995-03-24 23:40:41 +00:00
Jim Meyering
eba8aab7f2
add 1995 to Copyright dates
1995-03-09 22:20:59 +00:00
Jim Meyering
faed18c267
(extract_regexp): Use strrchr, not rindex.
1995-01-29 05:32:10 +00:00
Jim Meyering
45f162ad7a
(load_buffer): Use memcpy rather than bcopy.
1995-01-28 04:47:03 +00:00
Jim Meyering
8d6c6946dd
Include "error.h" instead of simply declaring `void error ();'.
1994-12-16 05:41:05 +00:00
Jim Meyering
0e168c7d03
(get_format_width, get_format_prec): Use ISDIGIT instead of
...
comparisons against '0' and '9'.
1994-12-11 23:43:21 +00:00
Jim Meyering
544baf5482
merge with 1.9.1h
1994-10-19 03:39:33 +00:00
Jim Meyering
85842e28eb
.
1994-04-13 17:12:17 +00:00
Jim Meyering
abbc6f5242
.
1994-04-11 22:03:06 +00:00
Jim Meyering
8bf5a6ed18
.
1994-03-25 23:38:00 +00:00
Jim Meyering
c6756ec787
.
1994-01-26 18:51:44 +00:00
Jim Meyering
07cd9a8d15
safe_read and full_write + join patch
1994-01-09 03:47:21 +00:00
Jim Meyering
c7ebcc8326
merge with 1.8.1a
1993-10-30 15:57:46 +00:00
Jim Meyering
3bc2827212
merge with 1.8h
1993-10-24 20:00:39 +00:00
Jim Meyering
6d920eca0c
merge with 1.8g
1993-10-24 19:04:12 +00:00
Jim Meyering
b869639f46
merge with 1.8d+
1993-10-23 15:37:19 +00:00