2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
5 /* $Id: input.c,v 3.24 1994/06/24 12:04:09 ceriel Exp $ */
10 #define INP_TYPE struct file_info
12 struct file_info finfo;
15 #include <inp_pkg.body>
23 extern int IncludeLevel;
24 extern char options[];
33 p = strrindex(fn, '/');
34 while (p && *(p + 1) == '\0') { /* remove trailing /'s */
36 p = strrindex(fn, '/');
39 if (fn[0] == '\0' || (fn[0] == '/' && p == &fn[0])) /* absolute path */
43 fn = Salloc(fn, p - &fn[0] + 1);
58 /* if (NoUnstack) lexwarning("unexpected EOF"); ??? */
69 if (nestlevel != nestlow) lexwarning("missing #endif");
72 if (NoUnstack) lexerror("unexpected EOF");
76 if (options['g'] && IncludeLevel > 0) {
77 C_ms_stb_cst(FileName, N_EINCL, 0, (arith) 0);