summaryrefslogtreecommitdiff
path: root/src/ptx.c
AgeCommit message (Collapse)Author
2004-09-21Remove unused "case 0".Paul Eggert
2004-08-03Add a FIXME mentioning that there are manyPaul Eggert
unchecked integer overflows in this file. (gnu_extensions, auto_reference, input_reference, right_reference, ignore_case, initialize_regex, fix_output_parameters, output_one_roff_line, output_one_text_line, output_one_dumb_line, main): Use bool for booleans. (SKIP_SOMETHING, compare_words, digest_break_file, find_occurs_in_text, fix_output_parameters): Use to_uchar instead of a caset. (print_field): Rewrite to avoid cast.
2004-06-21(main): Standardize on the diagnostics given when someone givesJim Meyering
too few operands ("missing operand after `xxx'") or too many operands ("extra operand `xxx'"). Include "quote.h" and/or "error.h" if it wasn't already being included.
2004-06-01(swallow_file_in_memory, main):Jim Meyering
Prefer the notation `STREQ (a, b)' over `strcmp (a, b) == 0'.
2004-05-29(text_buffer_maxend): Remove declarations unused variable.Jim Meyering
2004-04-27(syntax_table, re_syntax_table): Remove declarations of two unusedJim Meyering
variables (they were exposed by the above change).
2004-04-27Make over 40 global extern variables `static'.Jim Meyering
2004-03-31whoops. Remove old code, too, <blush>.Jim Meyering
2004-03-31Specifying an invalid --width=N (-w) or --gap-size=N (-g)Jim Meyering
would not elicit an error. Include "xstrtol.h" and "quotearg.h". (main): Don't use atoi. Use xstrtoul instead.
2003-11-20(usage): Output bug-reporting address.Jim Meyering
2003-11-02(alloc_and_compile_regex, main): Use `sizeof *var' ratherJim Meyering
than `sizeof EXPLICIT_TYPE'. The former is more maintainable and usually shorter.
2003-10-18Most .c files (AUTHORS): Revert the WRITTEN_BY/AUTHORS changeJim Meyering
of 2003-09-19. Now, AUTHORS is a comma-separated list of strings. Update the call to parse_long_options so that `AUTHORS, NULL' are the last parameters. * src/true.c (main): Append NULL to version_etc argument list. * src/sys2.h (case_GETOPT_VERSION_CHAR): Likewise.
2003-09-22Switch encoding from Latin-1 to UTF-8.Jim Meyering
(WRITTEN_BY): Change "Franc,ois" (actually using c-with-cedilla in Latin-1) to "F.", so that it's ASCII, as xgettext requires.
2003-09-18(WRITTEN_BY): Rename from AUTHORS.Jim Meyering
Begin each WRITTEN_BY string with `Written by ' and end it with `.'. Mark each WRITTEN_BY string as translatable.
2003-08-01Do not include bumpalloc.h.Jim Meyering
(WORD_TABLE): New member alloc. (ALLOC_NEW_WORD): Remove. (occurs_alloc): New var. (digest_word_file, find_occurs_in_text): Check for arithmetic overflow when computing table size. Use xrealloc rather than bumpalloc primitives.
2003-07-23Don't include headers already included by system.h:Jim Meyering
Don't include closeout.h.
2003-06-17(main): Call initialize_main.Jim Meyering
2003-04-11Remove SPC in SPC-TAB sequence.Jim Meyering
2003-04-11Remove anachronistic casts of xmalloc,Jim Meyering
xrealloc, and xcalloc return values and of xrealloc's first argument.
2003-03-07(output_one_tex_line, output_one_dumb_line):Jim Meyering
Use putchar, not fputs, to output a single character.
2002-09-15(generate_all_output): Likewise.Jim Meyering
2002-01-22update copyright yearJim Meyering
2002-01-22(swallow_file_in_memory): Work even if `open' returns 0.Jim Meyering
Check for `close' error.
2001-12-01Reflect renaming to, and new usage of these macros:Jim Meyering
HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTION.
2001-12-01(usage): Use new macros, EMIT_HELP_DESCRIPTION and EMIT_VERSION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Factor out some common strings to make translation easier.Jim Meyering
Split usage strings so that --help and --version descriptions are alone in their own string. Likewise for the one that says: Mandatory arguments to long options are mandatory for short options too.
2001-11-23(main): Don't split string in the middle of sentence.Jim Meyering
2001-11-11(main, usage): Split --help output into smaller pieces.Jim Meyering
2001-11-04(usage): Add one-line description.Jim Meyering
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
1999-05-03<ctype.h>: Don't include.Jim Meyering
[!STDC_HEADERS]: Remove definitions of ctype macros. Convert e.g., isspace to ISSPACE to use definitions from sys2.h. Reported by Kaveh Ghazi.
1999-04-04Standardize --help and --version processing.Jim Meyering
1999-04-03Use AUTHORS in place of string in parse_long_options call.Jim Meyering
1999-04-03Insert AUTHORS definition.Jim Meyering
1999-04-03Use PROGRAM_NAME in place of string in parse_long_options call.Jim Meyering
1999-04-03define PROGRAM_NAMEJim Meyering
1999-03-07(swallow_file_in_memory): Use a `%s' format in error call,Jim Meyering
in case the argument string contains a `%'.
1999-03-07(swallow_file_in_memory): Slurp up the whole file atJim Meyering
once on MSDOS as well, but we have to relax the test for whether reading it succeeded.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. Remove declarations of show_help and show_version. (main): Remove `const' attribute from dcl of argv parameter. Call bindtextdomain and textdomain. Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-15*** empty log message ***Jim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1999-01-02(format_vals): New array.Jim Meyering
(main): Use XARGMATCH in place of argmatch.
1998-09-19(program_name): Declare *not* to be const.Jim Meyering
1998-08-15Add braces to suppress warning about ambiguous `else'.Jim Meyering
1998-08-14.Jim Meyering