summaryrefslogtreecommitdiff
path: root/src/tr.c
AgeCommit message (Collapse)Author
1995-11-05(unquote): Add casts to avoid signed char* from/to char* warnings.Jim Meyering
1995-10-20(BEGIN_STATE): Use INT_MAX - 1 so as not to interfere with large repeat counts.Jim Meyering
(struct E_string): New struct. (find_closing_delim): Take E_string arg rather than char* and length. (find_bracketed_repeat): Likewise. (star_digits_closebracket): New function. (append_char_class): No longer give diagnostic. (append_equiv_class): No longer give diagnostic. (build_spec_list): Give them here instead, allowing things like [:*][:upper:] that got errors before. Take E_string arg rather than char*. Convert switch stmts into if-then so as to use ES_MATCH.
1995-10-19(build_spec_list): Propagate interface change.Jim Meyering
(parse_str): Likewise.
1995-10-19(struct E_string): Define.Jim Meyering
(unquote): Convert string to E_string instead of overwriting input. Backslash-escaped non-special characters are marked as quoted in E_string. (build_spec_list): Convert outer switch stmt to an if-stmt. (parse_str): Update sole caller of unquote.
1995-10-19Break lines longer than 79-80 chars.Jim Meyering
1995-08-07Annotate localizable strings with _(...). From Franc,ois.Jim Meyering
1995-08-05(validate): Remove const attribute from formal #1.Jim Meyering
It may be modified.
1995-08-05Protoize.Jim Meyering
1995-07-16(build_spec_list): Declare CLOSING_DELIM_IDX and CLOSING_BRACKET_IDX toJim Meyering
be of type size_t, not int. (main): Declare NR and CHARS_READ to be of type long, not int.
1995-07-12(unqote): Comment out unreachable break stmts.Jim Meyering
(append_range): Declare FIRST and LAST parameters to be unsigned int, not size_t. (find_closing_delim): Clean up interface, separating boolean success indicator and index. (find_bracketed_repeat): Likewise. (build_spec_list): Adapt to use new interfaces.
1995-06-18merge with 1.12Jim Meyering
1995-06-14[NDEBUG]: Define it to disable assertions.Jim Meyering
(is_char_class_member): Set a variable in each branch of switch stmt and return that value after the switch (rather than returning directly from every branch). (unquote): More int->size_t changes. (build_spec_list): More int->size_t changes. Be very careful about comparison now that variables are unsigned: Use i + 2 < len rather than i < len - 2. The latter failed for len < 2.
1995-06-13[struct Spec_list] (indefinite_repeat_element): New member.Jim Meyering
Use size_t rather than int or unsigned long where reasonable. (get_spec_status): Make interface cleaner. (get_s1_spec_status): New function. (get_s2_spec_status): New function. (validate): Use new functions.
1995-06-12(non_neg_strtol): Don't compare signed and unsigned.Jim Meyering
1995-06-11(look_up_char_class, append_char_class, append_equiv_class): Use constJim Meyering
attribute when appropriate.
1995-05-20(look_up_char_class): Take a string length argument.Jim Meyering
Use strncmp, not strcmp and verify that string lengths are the same. (append_char_class): Update caller. From Andreas Schwab.
1995-05-13(usage): Include one- or two-line synopsis in --help output.Jim Meyering
From Karl Berry.
1995-03-09add 1995 to Copyright datesJim Meyering
1995-01-28(substr): Don't allocate a byte for trailing NUL in resultJim Meyering
since the result needn't be NUL-terminated. Don't NUL terminate it.
1995-01-28(append_equiv_class): Use memcpy instead of bcopy.Jim Meyering
(card_of_complement, set_initialize): Use memset, not bzero.
1995-01-17Don't use `legal' when you mean `valid'.Jim Meyering
1994-12-16Include "error.h" instead of simply declaring `void error ();'.Jim Meyering
1994-12-11[ULONGMAX]: Define it.Jim Meyering
[LONGMAX]: Define in terms of ULONGMAX instead of as a 32-bit constant.
1994-11-16Include <getopt.h> instead of "getopt.h".Jim Meyering
1994-11-03merge with 1.9.1j2Jim Meyering
1994-10-19merge with 1.9.1hJim Meyering
1994-10-02.Jim Meyering
1994-07-13(substr): Allocate len+1 bytes (not just len) to leave room for trailing NUL.Jim Meyering
1994-07-12.Jim Meyering
1994-04-13.Jim Meyering
1994-03-30.Jim Meyering
1994-03-25.Jim Meyering
1994-01-09safe_read and full_write + join patchJim Meyering
1993-10-23merge with 1.8fJim Meyering
1993-10-23merge with 1.8d+Jim Meyering
1993-10-21merge with 1.8dJim 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
1993-03-06Compare getenv with NULL instead of 0 -- just for aesthetics.Jim Meyering
1993-02-25reindent with indent-1.7Jim Meyering
1992-12-10Merge with pre-release 1.3.6.Jim Meyering
1992-12-10Remove last (blank) line of file.Jim Meyering
1992-12-08(is_char_class_member): Remove unreached return after abort.Jim Meyering
1992-12-07Remove inclusion of <ctype.h> and definitions of is* ctype macros to system.h.Jim Meyering
Change a few more uses of is* ctype macros to (protected) upper case versions.
1992-12-02Convert static declarations of struct option to use new macros fromJim Meyering
getopt.h: no_argument, required_argument, and optional_argument.
1992-11-24Use David's definition of isascii instead of my CTYPE_PREFIX macro.Jim Meyering
1992-11-24* Define new macros ISPRINT, ISALNUM, ISXDIGIT, ... that use isasciiJim Meyering
if it is defined. (is_char_class_member, make_printable_char, make_printable_str, non_neg_strtol): Use new macros instead of lower case ones from <ctype.h>.
1992-11-19Merged in changes for 1.3.5.Jim Meyering