1 /* $Id: input.c,v 1.12 1995/08/17 13:33:53 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
8 #define INP_TYPE struct file_info
10 struct file_info finfo;
11 #include <inp_pkg.body>
21 p = strrindex(fn, '/');
22 while (p && *(p + 1) == '\0') { /* remove trailing /'s */
24 p = strrindex(fn, '/');
27 if (fn[0] == '\0' || (fn[0] == '/' && p == &fn[0])) /* absolute path */
32 fn = Salloc(fn, p - &fn[0] + 1);
45 /* if (NoUnstack) warning("unexpected EOF"); ??? */
46 /* This is wrong; in an #elif, NoUnstack can be set, but you
47 can still get calls to AtEoIT().
58 extern int svnestlevel[];
60 if (nestlevel > svnestlevel[nestcount]) warning("missing #endif");
61 else if (NoUnstack) warning("unexpected EOF");
62 nestlevel = svnestlevel[nestcount--];