Deleted Added
full compact
indent.c (40502) indent.c (48566)
1/*
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1976 Board of Trustees of the University of Illinois.
4 * Copyright (c) 1980, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45#if 0
46static char sccsid[] = "@(#)indent.c 5.17 (Berkeley) 6/7/93";
47#endif
48static const char rcsid[] =
1/*
2 * Copyright (c) 1985 Sun Microsystems, Inc.
3 * Copyright (c) 1976 Board of Trustees of the University of Illinois.
4 * Copyright (c) 1980, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 32 unchanged lines hidden (view full) ---

41 The Regents of the University of California. All rights reserved.\n";
42#endif /* not lint */
43
44#ifndef lint
45#if 0
46static char sccsid[] = "@(#)indent.c 5.17 (Berkeley) 6/7/93";
47#endif
48static const char rcsid[] =
49 "$Id: indent.c,v 1.2 1997/07/15 09:50:59 charnier Exp $";
49 "$Id: indent.c,v 1.3 1998/10/18 04:46:24 thepish Exp $";
50#endif /* not lint */
51
52#include <sys/param.h>
53#include <err.h>
54#include <fcntl.h>
55#include <unistd.h>
56#include <stdio.h>
57#include <stdlib.h>

--- 145 unchanged lines hidden (view full) ---

203 err(1, out_name);
204 continue;
205 }
206 errx(1, "unknown parameter: %s", argv[i]);
207 }
208 else
209 set_option(argv[i]);
210 } /* end of for */
50#endif /* not lint */
51
52#include <sys/param.h>
53#include <err.h>
54#include <fcntl.h>
55#include <unistd.h>
56#include <stdio.h>
57#include <stdlib.h>

--- 145 unchanged lines hidden (view full) ---

203 err(1, out_name);
204 continue;
205 }
206 errx(1, "unknown parameter: %s", argv[i]);
207 }
208 else
209 set_option(argv[i]);
210 } /* end of for */
211 if (input == 0) {
211 if (input == 0)
212 input = stdin;
212 input = stdin;
213 }
214 if (output == 0)
213 if (output == 0) {
215 if (troff || input == stdin)
216 output = stdout;
217 else {
218 out_name = in_name;
219 bakcopy();
220 }
214 if (troff || input == stdin)
215 output = stdout;
216 else {
217 out_name = in_name;
218 bakcopy();
219 }
220 }
221 if (ps.com_ind <= 1)
222 ps.com_ind = 2; /* dont put normal comments before column 2 */
223 if (troff) {
224 if (bodyf.font[0] == 0)
225 parsefont(&bodyf, "R");
226 if (scomf.font[0] == 0)
227 parsefont(&scomf, "I");
228 if (blkcomf.font[0] == 0)

--- 954 unchanged lines hidden ---
221 if (ps.com_ind <= 1)
222 ps.com_ind = 2; /* dont put normal comments before column 2 */
223 if (troff) {
224 if (bodyf.font[0] == 0)
225 parsefont(&bodyf, "R");
226 if (scomf.font[0] == 0)
227 parsefont(&scomf, "I");
228 if (blkcomf.font[0] == 0)

--- 954 unchanged lines hidden ---