summaryrefslogtreecommitdiff
path: root/src/tsort.c
AgeCommit message (Collapse)Author
2003-09-18revert previous changeJim Meyering
2003-09-18Update AUTHORS definition to be a comma-separated list of strings and/or updateJim Meyering
the call to parse_long_options so that `AUTHORS, NULL' are the last parameters.
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-24(tsort): Remove unnecessary test of have_read_stdin.Jim Meyering
(main): Minor syntactic clean-up.
2003-04-24(tsort): Fail if the input contains an odd number of tokens.Jim Meyering
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-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-11(count_items): Mark parameter as unused.Jim Meyering
2001-01-17(main): Use PACKAGE, not GNU_PACKAGE.Jim Meyering
2000-11-16Include sys/types.h before system.h.Jim Meyering
2000-08-23Include <config.h> unconditionally, to be consistentJim Meyering
with all the other programs in this directory.
2000-05-20Arrange to call close_stdout upon exit. Don't close stdout explicitly.Jim Meyering
2000-01-26(detect_loop): Update incomplete comment.Jim Meyering
From Mark Kettenis.
2000-01-25tsort now works more like the traditional UNIX tsort. Before it wouldJim Meyering
exit when it found a loop. Now it continues and outputs all items. (exit_status): New variable. (loop): New varibale. (count_items, scan_zeroes): Change return type to int. (detect_loop): Complete rewrite to correctly implement detection of loops. Also change return type to int. (recurse_tree): Stop if ACTION returns non-zero. This involves changing the return type of this function and ACTION to int. (walk_tree): Change return type of ACTION to int. (tsort): Continue sort after a loop has been detected (and broken). Set exit_status to 1 if a loop was detected. (main): Use exit_status to determine exit code.
1999-09-02Remove xstrdup declaration.Jim Meyering
1999-08-22(detect_loop): There's no loop if k->top is NULL.Jim Meyering
1999-08-22(usage): Correct bug-reporting email address.Jim Meyering
(tsort): Remove trailing `\n' in error format.
1999-05-04(search_item): Use `1' instead of `+1'. The latterJim Meyering
elicits a syntax error from SunOS4's cc. From Kaveh Ghazi.
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-04(main): Include author name argument in call to parse_long_options.Jim Meyering
1999-01-14Don't prototype usage as static.Jim Meyering
1999-01-02(tsort): Use a single call to error instead of two to fprintf.Jim Meyering
(main): Remove `%s: ' prefix on format string.
1999-01-02Move inclusion of assert.h to follow that of stdio.h.Jim Meyering
Some losing systems require this. Use STREQ macro instead of strcmp in a few places.
1999-01-02Include readtokens.h.Jim Meyering
(zeros): Rename global from `rr'. (getstr): Remove function. (tsort) Use readtoken instead of getstr.
1999-01-01Rename globals N and R so they don't shadow locals.Jim Meyering
(tsort): Rename from `sort'.
1999-01-01remove trailing blanksJim Meyering
1999-01-01from Mark KettenisJim Meyering