#include "command.h"
#include "dictionary.h"
#include "error.h"
-#include "file-handle.h"
+#include "file-handle-def.h"
#include "filename.h"
#include "getl.h"
#include "glob.h"
#include "output.h"
#include "progname.h"
#include "random.h"
+#include "readln.h"
#include "settings.h"
#include "var.h"
#include "version.h"
fn_init ();
fh_init ();
getl_initialize ();
+ readln_initialize ();
settings_init ();
random_init ();
if (token != T_STOP)
break;
- if (!getl_perform_delayed_reset ())
+ /* Sets the options flag of the current script to 0, thus allowing it
+ to be read in. Returns nonzero if this action was taken, zero
+ otherwise. */
+ if (getl_head && getl_head->separate)
+ {
+ getl_head->separate = 0;
+ discard_variables ();
+ lex_reset_eof ();
+ }
+ else
terminate (err_error_count == 0);
}
assert (0);
}
- if (getl_reading_script)
+ if (getl_reading_script())
{
err_break ();
while (token != T_STOP && token != '.')