ack/lang/m2/comp/input.c

32 lines
584 B
C
Raw Normal View History

1986-03-26 15:11:02 +00:00
/* I N S T A N T I A T I O N O F I N P U T P A C K A G E */
1986-03-20 14:52:03 +00:00
#include "f_info.h"
struct f_info file_info;
#include "input.h"
1986-10-06 20:36:30 +00:00
#include <em_arith.h>
#include <em_label.h>
#include "def.h"
#include "idf.h"
#include "scope.h"
1986-03-20 14:52:03 +00:00
#include <inp_pkg.body>
1986-06-06 02:22:09 +00:00
1986-10-06 20:36:30 +00:00
extern struct idf *CurrentId;
1986-06-06 02:22:09 +00:00
AtEoIF()
{
/* Make the unstacking of input streams noticable to the
lexical analyzer
*/
1986-10-06 20:36:30 +00:00
if (CurrentId && ! lookup(CurrentId, GlobalScope)) {
fatal("No definition module read for \"%s\"", CurrentId->id_text);
}
1986-06-06 02:22:09 +00:00
return 1;
}
AtEoIT()
{
/* Make the end of the text noticable
*/
return 1;
}