summaryrefslogtreecommitdiff
path: root/src/csplit.c
AgeCommit message (Collapse)Author
1996-03-24Exit with status EXIT_SUCCESS or EXIT_FAILURE, rather than 0 or 1.Jim Meyering
This doesn't change `error (1' calls.
1996-03-22Include assert.h, but disable assertions.Jim Meyering
(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-21(main): Declare to be of type int, not void.Jim Meyering
1996-03-16Don't include version.h.Jim Meyering
(main): Use PACKAGE_VERSION instead of version_string.
1996-03-09(main): Initialize for internationalized message support: call setlocale,Jim Meyering
bindtextdomain, and textdomain.
1995-12-31(extract_regexp) [!WITH_REGEX]: Initialize re_compiled.syntax_parens.Jim Meyering
From Andreas Schwab.
1995-12-06[!WITH_REGEX]: Include rx.h.Jim Meyering
1995-11-27s/non-zero/nonzero/gJim Meyering
1995-11-26[!UINT_MAX]: Define.Jim Meyering
[!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-15[__P]: Don't define it here.Jim Meyering
1995-11-15(cleanup): Don't exit.Jim Meyering
(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-05Protect prototypes with __P.Jim Meyering
1995-11-05Move prototypes after struct declarations.Jim Meyering
Remove prototypes for xmalloc, xrealloc. (new_control_record): Cast arg 1 to realloc.
1995-11-05Protoize.Jim Meyering
1995-11-05(close_output_file): Set output_stream to NULL so we don't recurseJim Meyering
endlessly between this function and cleanup.
1995-10-04Test SA_INTERRUPT, not _POSIX_VERSION,Jim Meyering
to determine whether `sigaction' functions are available. Reported by Paul Nevai <nevai@ops.mps.ohio-state.edu>. Fix suggested by Karl Berry.
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-07-25(main): When too few arguments are given, don't justJim Meyering
issue the usage message; also report why.
1995-06-24(read_input): Rename paramater MAX to MAX_N_BYTES. To avoid potentialJim Meyering
conflict with max macro from some system's header files and bad pre-ANSI compilers.
1995-06-22(interrupt_handler): Declare to have a single integerJim Meyering
parameter. Otherwise, some compilers failed with a type mismatch error in sa_handler assignment.
1995-06-18merge with 1.12Jim Meyering
1995-05-25[struct control]: Change type of `repeat' member to unsignedJim Meyering
long to avoid conversion warning.
1995-05-19(record_line_starts): Remove set-but-not-used, file-scope variable.Jim Meyering
1995-05-13(usage): Include one- or two-line synopsis in --help output.Jim Meyering
From Karl Berry.
1995-03-24Declare as `unsigned int' all variables that were just `unsigned'.Jim Meyering
(make_filename): Change type of arg to unsigned int. (split_file): Change type of indices to unsigned int.
1995-03-09add 1995 to Copyright datesJim Meyering
1995-01-29(extract_regexp): Use strrchr, not rindex.Jim Meyering
1995-01-28(load_buffer): Use memcpy rather than bcopy.Jim Meyering
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
1994-12-11(get_format_width, get_format_prec): Use ISDIGIT instead ofJim Meyering
comparisons against '0' and '9'.
1994-10-19merge with 1.9.1hJim Meyering
1994-04-13.Jim Meyering
1994-04-11.Jim Meyering
1994-03-25.Jim Meyering
1994-01-26.Jim Meyering
1994-01-09safe_read and full_write + join patchJim Meyering
1993-10-30merge with 1.8.1aJim Meyering
1993-10-24merge with 1.8hJim Meyering
1993-10-24merge with 1.8gJim Meyering
1993-10-23merge with 1.8d+Jim Meyering
1993-10-21merge with 1.8dJim Meyering
1993-10-21merge with 1.8cJim Meyering
1993-10-20* [MAX]: Macro renamed from max and moved to top of file.Jim Meyering
* (bytes_to_octal_digits): New static array. * (get_format_flags): Combine '+' and ' ' cases of switch stmt. Return count if for loop terminates. Otherwise --suffix=%- would lose. * (get_format_width): Use `bytes_to_octal_digits' instead of just 11. * (get_format_prec): Make sure is_negative is defined before used. * (get_format_conv_type): Give a different error message if there is no conversion specifier. Test ISPRINT (ch) instead of `ch < '~' && ch > ' ''. * (max_out): Use `%%' rather than `%' in format string.
1993-10-20Remove register keyword (replace with `int' in two cases).Jim Meyering
1993-10-20patch from rfgJim Meyering
1993-10-05merge with 1.8aJim Meyering
1993-05-22merge with 1.5.2Jim Meyering
1993-05-07merge with 1.5Jim Meyering
1993-04-29add --version and --helpJim Meyering
1992-12-10Merge with pre-release 1.3.6.Jim Meyering