summaryrefslogtreecommitdiff
path: root/src/dircolors.c
AgeCommit message (Collapse)Author
2005-10-24rename array_cardinality to array_lenJim Meyering
2005-10-24(ls_codes): Add missing comma.Jim Meyering
Anonymous report and patch from http://savannah.gnu.org/bugs/?func=detailitem&item_id=14849
2005-10-24Add a compile-time assertion that the slack_codesJim Meyering
and ls_codes arrays have the same number of elements. This would have prevented the above-fixed bug.
2005-10-19(append_quoted): Quote ' correctly.Jim Meyering
Problem reported by Eric Blake.
2005-09-24Use `#ifdef HAVE_CONFIG_H', not `#if HAVE_CONFIG_H', for consistency with ↵Jim Meyering
gnulib.
2005-09-22Include strcase.h.Paul Eggert
2005-09-05Colorize set-user-ID and set-group-ID files and sticky,Jim Meyering
other-writable, and sticky-and-other-writable directories. (slack_codes): Add new dircolors mode names. (ls_codes): Add corresponding two-letter ls mode strings. From Mike Frysinger, based on a patch from Fedora.
2005-08-12Add bulletproofing in case stdin is closed.Jim Meyering
(have_read_stdin): Remove global variable. (dc_parse_stream): Always use stdin (freopen, if needed) rather than sometimes using fopen to get a new file descriptor. Call fclose unconditionally. (main): Don't close stdin here. If needed, now it's already done by dc_parse_stream.
2005-08-12(dc_parse_file): Remove comment about now-removed OPENOPTS.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-14Update FSF postal mail address.Jim Meyering
2005-05-12Assume `free (NULL)' works.Jim Meyering
2005-04-11(dc_parse_file): Don't assume fopen does not return stdin.Paul Eggert
2005-03-26(parse_line): Use char *, not unsigned char *. This avoids casts.Paul Eggert
(dc_parse_stream, main): Avoid casts. Adjust to simpler data structure generated by new dcgen.
2004-08-02(have_read_stdin, append_quoted,Paul Eggert
dc_parse_stream, dc_parse_file, main): Use bool for booleans. (dc_parse_stream): Use enum for state, rather than int. Use ssize_t to store getline result.
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-01-21(usage): Use EXIT_SUCCESS, not 0, for clarity.Jim Meyering
(usage): Don't bother normalizing exit status since the arg is already the correct exit status now.
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-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-07-23Include xstrndup.h.Jim Meyering
(xstrndup): Remove function, now that it's been factored out into it's own file.
2003-06-17(main): Call initialize_main.Jim Meyering
2002-12-01Don't include <ctype.h>.Jim Meyering
That's already done via system.h.
2002-08-31Change `exit (0)' to `exit (EXIT_SUCCESS)',Jim Meyering
`exit (1)' to `exit (EXIT_FAILURE)', and `usage (1)' to `usage (EXIT_FAILURE)'.
2002-07-02(usage): Use the PACKAGE_BUGREPORT e-mail address, rather than hard-coding it.Jim Meyering
2001-12-02Use new macros, HELP_OPTION_DESCRIPTION and VERSION_OPTION_DESCRIPTIONJim Meyering
instead of hard-coding --help and --version descriptions.
2001-11-23Split usage strings so that --help and --versionJim Meyering
descriptions are alone in their own string.
2001-11-23(usage): Split --help output into smaller pieces.Jim Meyering
Use fputs, not printf.
2001-05-12include dirname.h.Jim Meyering
2000-08-08(xstrndup): Invoke xalloc_die instead of printing our own message.Jim Meyering
2000-07-30include quote.h.Jim Meyering
2000-07-30Convert "`%s'" in format strings to "%s", and wrap eachJim Meyering
corresponding argument in a `quote (...)' call.
2000-07-09update copyright dateJim Meyering
2000-05-13Arrange to call close_stdout only upon exit.Jim Meyering
2000-05-03Remove declaration of strndup.Jim Meyering
1999-04-04define/use AUTHORSJim Meyering
1999-03-31Don't include closeout.h or version-etc.h explicitly. Now, they're included ↵Jim Meyering
via sys2.h.
1999-03-26No longer include long-options.h.Jim Meyering
Include version-etc.h instead. (PROGRAM_NAME, AUTHORS): Define. [long_options]: Add entries for --help and --version. Remove parse_long_options call. (main) [getopt switch]: Add a case for each of --help and --version.
1999-03-04Include long-options.hJim Meyering
[long_options]: Remove the "help" and "version" entries. (main): Use parse_long_options, including author name(s). Remove the show_version and show_help blocks.
1999-02-16update copyright datesJim Meyering
1999-02-14(dc_parse_stream): Don't try to dereference NULLJim Meyering
if there's an error is in our built-in list.
1999-02-09(slack_codes): Add "DOOR".Jim Meyering
(ls_codes): Add corresponding "do".
1999-01-16Don't declare base_name.Jim Meyering
(usage): Don't make it static so that it can be called from libfu.a by xargmatch.
1998-09-19update bug-reporting addressJim Meyering
1998-08-26(dc_parse_stream): Don't segfault when a lineJim Meyering
contains only one token. Reported by Olav Morkrid.
1998-07-05(parse_line): Add casts to avoid errors from Irix4's `cc' C compiler.Jim Meyering
From Kaveh Ghazi.
1998-06-29revert back to using lower case _unlocked wrapper namesJim Meyering
1998-06-29Change all uses of unlocked-wrapped functions to their upper case wrapper names.Jim Meyering
1998-04-28(parse_line): Use ISSPACE, not isspace.Jim Meyering
Use unsigned char * pointers, not potentially signed ones, to avoid sign extension.
1998-04-14Use STREQ in string equality tests, not strcmp.Jim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macros.Jim Meyering
Use #if !, not #ifndef with HAVE_ macros.