lpf.c (50479) | lpf.c (78146) |
---|---|
1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#ifndef lint 35static char copyright[] = 36"@(#) Copyright (c) 1983, 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41static char sccsid[] = "From: @(#)lpf.c 8.1 (Berkeley) 6/6/93"; | 1/* 2 * Copyright (c) 1983, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 25 unchanged lines hidden (view full) --- 34#ifndef lint 35static char copyright[] = 36"@(#) Copyright (c) 1983, 1993\n\ 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41static char sccsid[] = "From: @(#)lpf.c 8.1 (Berkeley) 6/6/93"; |
42static char id[] = "$FreeBSD: head/usr.sbin/lpr/filters/lpf.c 50479 1999-08-28 01:35:59Z peter $"; | 42static char id[] = "$FreeBSD: head/usr.sbin/lpr/filters/lpf.c 78146 2001-06-12 16:38:20Z gad $"; |
43#endif /* not lint */ 44 45/* 46 * filter which reads the output of nroff and converts lines 47 * with ^H's to overwritten lines. Thus this works like 'ul' 48 * but is much better: it can handle more than 2 overwrites 49 * and it is written with some style. 50 * modified by kls to use register references instead of arrays --- 16 unchanged lines hidden (view full) --- 67int indent; /* indentation length */ 68int npages = 1; 69int literal; /* print control characters */ 70char *name; /* user's login name */ 71char *host; /* user's machine name */ 72char *acctfile; /* accounting information file */ 73 74int | 43#endif /* not lint */ 44 45/* 46 * filter which reads the output of nroff and converts lines 47 * with ^H's to overwritten lines. Thus this works like 'ul' 48 * but is much better: it can handle more than 2 overwrites 49 * and it is written with some style. 50 * modified by kls to use register references instead of arrays --- 16 unchanged lines hidden (view full) --- 67int indent; /* indentation length */ 68int npages = 1; 69int literal; /* print control characters */ 70char *name; /* user's login name */ 71char *host; /* user's machine name */ 72char *acctfile; /* accounting information file */ 73 74int |
75main(argc, argv) 76 int argc; 77 char *argv[]; | 75main(int argc, char *argv[]) |
78{ 79 register FILE *p = stdin, *o = stdout; 80 register int i, col; 81 register char *cp; 82 int done, linedone, maxrep; 83 char *limit; 84 int ch; 85 --- 134 unchanged lines hidden --- | 76{ 77 register FILE *p = stdin, *o = stdout; 78 register int i, col; 79 register char *cp; 80 int done, linedone, maxrep; 81 char *limit; 82 int ch; 83 --- 134 unchanged lines hidden --- |