SCCS-vsn: usr.bin/soelim/soelim.c 4.3
-static char *sccsid = "@(#)soelim.c 4.2 (Berkeley) %G%";
+static char *sccsid = "@(#)soelim.c 4.3 (Berkeley) %G%";
argc--;
argv++;
if (argc == 0) {
argc--;
argv++;
if (argc == 0) {
+ (void)process(STDIN_NAME);
+ (void)process(argv[0]);
argv++;
argc--;
} while (argc > 0);
exit(0);
}
argv++;
argc--;
} while (argc > 0);
exit(0);
}
char *file;
{
register char *cp;
register int c;
char fname[BUFSIZ];
FILE *soee;
char *file;
{
register char *cp;
register int c;
char fname[BUFSIZ];
FILE *soee;
if (!strcmp(file, STDIN_NAME)) {
soee = stdin;
if (!strcmp(file, STDIN_NAME)) {
soee = stdin;
soee = fopen(file, "r");
if (soee == NULL) {
perror(file);
soee = fopen(file, "r");
if (soee == NULL) {
perror(file);
c = getc(soee);
while (c == ' ' || c == '\t');
cp = fname;
c = getc(soee);
while (c == ' ' || c == '\t');
cp = fname;
default:
*cp++ = c;
c = getc(soee);
default:
*cp++ = c;
c = getc(soee);
goto simple;
}
*cp++ = 0;
goto simple;
}
*cp++ = 0;
+ if (process(fname) < 0)
+ if (isfile)
+ printf(".so %s\n", fname);
continue;
simple:
if (c == EOF)
continue;
simple:
if (c == EOF)
if (soee != stdin) {
fclose(soee);
}
if (soee != stdin) {
fclose(soee);
}