version 1.5, 2001/11/19 19:02:13 |
version 1.6, 2003/03/13 23:11:16 |
|
|
* SUCH DAMAGE. |
* SUCH DAMAGE. |
*/ |
*/ |
#ifndef lint |
#ifndef lint |
static char copyright[] = |
static const char copyright[] = |
"@(#) Copyright (c) 1983, 1993\n\ |
"@(#) Copyright (c) 1983, 1993\n\ |
The Regents of the University of California. All rights reserved.\n"; |
The Regents of the University of California. All rights reserved.\n"; |
#endif /* not lint */ |
|
|
|
#ifndef lint |
|
#if 0 |
#if 0 |
static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94"; |
static char sccsid[] = "@(#)printjob.c 8.2 (Berkeley) 4/16/94"; |
#else |
#else |
static char rcsid[] = "$OpenBSD$"; |
static const char rcsid[] = "$OpenBSD$"; |
#endif |
#endif |
#endif /* not lint */ |
#endif /* not lint */ |
|
|
|
|
for (scnhgt = 0; scnhgt++ < HEIGHT+DROP; ) { |
for (scnhgt = 0; scnhgt++ < HEIGHT+DROP; ) { |
strp = &outbuf[0]; |
strp = &outbuf[0]; |
sp = scsp; |
sp = scsp; |
for (nchrs = 0; ; ) { |
for (nchrs = 0; *sp != dlm && *sp != '\0'; ) { |
c = TRC(cc = *sp++); |
cc = *sp++; |
|
if ((unsigned char)cc < ' ' || |
|
(unsigned char)cc > 0x7f) |
|
cc = INVALID; |
|
|
|
c = TRC(cc); |
d = dropit(c); |
d = dropit(c); |
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d)) |
if ((!d && scnhgt > HEIGHT) || (scnhgt <= DROP && d)) |
for (j = WIDTH; --j;) |
for (j = WIDTH; --j;) |
*strp++ = BACKGND; |
*strp++ = BACKGND; |
else |
else |
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); |
strp = scnline(scnkey[(int)c][scnhgt-1-d], strp, cc); |
if (*sp == dlm || *sp == '\0' || nchrs++ >= PW/(WIDTH+1)-1) |
if (nchrs++ >= PW/(WIDTH+1)-1) |
break; |
break; |
*strp++ = BACKGND; |
*strp++ = BACKGND; |
#ifdef LPD_CHSET /* <sjg> */ |
#ifdef LPD_CHSET /* <sjg> */ |