/*
* Copyright 2005 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
/*
* Copyright (c) 1980 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <stdio.h>
/*
*
* Author: Bill Joy UCB July 8, 1977
*
* It can be used to prepare safe input for submission to the
* phototypesetter since the software supporting the operator
* doesn't let him do chdir.
*
* This is a kludge and the operator should be given the
* ability to do chdir.
*
* This program is more generally useful, it turns out, because
* the program tbl doesn't understand ".so" directives.
*/
int
{
argc--;
argv++;
if (argc == 0) {
(void)process(STDIN_NAME);
exit(0);
}
do {
argv++;
argc--;
} while (argc > 0);
return (0);
}
char *file;
{
register char *cp;
register int c;
int isfile;
} else {
return(-1);
}
}
for (;;) {
if (c == EOF)
break;
if (c != '.')
goto simple;
if (c != 's') {
putchar('.');
goto simple;
}
if (c != 'o') {
printf(".s");
goto simple;
}
do
while (c == ' ' || c == '\t');
isfile = 0;
for (;;) {
switch (c) {
case ' ':
case '\t':
case '\n':
case EOF:
goto donename;
default:
*cp++ = c;
isfile++;
continue;
}
}
printf(".so");
goto simple;
}
*cp = 0;
if (isfile)
continue;
if (c == EOF)
break;
putchar(c);
if (c != '\n') {
goto simple;
}
}
}
return(0);
}