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 1.4 1994/06/24 11:37:29 ceriel Exp $ */
10 #define INP_PUSHBACK 3
11 #define INP_TYPE struct file_info
13 struct file_info finfo;
14 #include <inp_pkg.body>
24 p = strrindex(fn, '/');
25 while (p && *(p + 1) == '\0') { /* remove trailing /'s */
27 p = strrindex(fn, '/');
30 if (fn[0] == '\0' || (fn[0] == '/' && p == &fn[0])) /* absolute path */
34 fn = Salloc(fn, (unsigned)(p - &fn[0] + 1));
47 /* if (NoUnstack) warning("unexpected EOF"); ??? */
56 extern int svnestlevel[];
58 if (nestlevel > svnestlevel[nestcount]) warning("missing #endif");
59 else if (NoUnstack) warning("unexpected EOF");
60 nestlevel = svnestlevel[nestcount--];