2007-10-07 Jim Meyering <meyering@redhat.com>
+ Use puts, rather than printf ("%s\n". Slightly cleaner.
+ * src/tsort.c (tsort): ...and more efficient.
+
Avoid seq malfunction on non-POSIX systems: mingw, BeOS, Interix.
* bootstrap.conf (gnulib_modules): Add vasprintf-posix.
Suggestion from Bruno Haible.
/* tsort - topological sort.
- Copyright (C) 1998-2005 Free Software Foundation, Inc.
+ Copyright (C) 1998-2005, 2007 Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
struct successor *p = head->top;
/* T5. Output front of queue. */
- printf ("%s\n", head->str);
+ puts (head->str);
head->str = NULL; /* Avoid printing the same string twice. */
n_strings--;