tsort.c (2384ae25e216de2c6cafde95ef6148d1e504df66) | tsort.c (1c8af8787354e20c2b38cab5801698133ff8b403) |
---|---|
1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Michael Rendell of Memorial University of Newfoundland. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/* 2 * Copyright (c) 1989, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Michael Rendell of Memorial University of Newfoundland. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $Id: tsort.c,v 1.6 1997/02/22 19:57:28 peter Exp $ | 36 * $Id: tsort.c,v 1.7 1997/03/11 14:48:14 peter Exp $ |
37 */ 38 39#ifndef lint 40static char copyright[] = 41"@(#) Copyright (c) 1989, 1993, 1994\n\ 42 The Regents of the University of California. All rights reserved.\n"; 43#endif /* not lint */ 44 --- 72 unchanged lines hidden (view full) --- 117 char *argv[]; 118{ 119 register BUF *b; 120 register int c, n; 121 FILE *fp; 122 int bsize, ch, nused; 123 BUF bufs[2]; 124 | 37 */ 38 39#ifndef lint 40static char copyright[] = 41"@(#) Copyright (c) 1989, 1993, 1994\n\ 42 The Regents of the University of California. All rights reserved.\n"; 43#endif /* not lint */ 44 --- 72 unchanged lines hidden (view full) --- 117 char *argv[]; 118{ 119 register BUF *b; 120 register int c, n; 121 FILE *fp; 122 int bsize, ch, nused; 123 BUF bufs[2]; 124 |
125 while ((ch = getopt(argc, argv, "dlq")) != EOF) | 125 while ((ch = getopt(argc, argv, "dlq")) != -1) |
126 switch (ch) { 127 case 'd': 128 debug = 1; 129 break; 130 case 'l': 131 longest = 1; 132 break; 133 case 'q': --- 304 unchanged lines hidden --- | 126 switch (ch) { 127 case 'd': 128 debug = 1; 129 break; 130 case 'l': 131 longest = 1; 132 break; 133 case 'q': --- 304 unchanged lines hidden --- |