texlive[62364] Build/source/texk/web2c/hitexdir/hitex.w: HiTeX:
commits+mruckert at tug.org
commits+mruckert at tug.org
Thu Mar 3 12:43:31 CET 2022
Revision: 62364
http://tug.org/svn/texlive?view=revision&revision=62364
Author: mruckert
Date: 2022-03-03 12:43:31 +0100 (Thu, 03 Mar 2022)
Log Message:
-----------
HiTeX: Fixing the -interaction option
Modified Paths:
--------------
trunk/Build/source/texk/web2c/hitexdir/hitex.w
Modified: trunk/Build/source/texk/web2c/hitexdir/hitex.w
===================================================================
--- trunk/Build/source/texk/web2c/hitexdir/hitex.w 2022-03-03 02:28:24 UTC (rev 62363)
+++ trunk/Build/source/texk/web2c/hitexdir/hitex.w 2022-03-03 11:43:31 UTC (rev 62364)
@@ -1824,7 +1824,9 @@
@<Glob...@>=
static int @!interaction; /*current level of interaction*/
-@ @<Set init...@>=interaction=error_stop_mode;
+@ @<Set init...@>=
+if (interaction_option<0) interaction=error_stop_mode;
+else interaction=interaction_option;
@ \TeX\ is careful not to call |error| when the print |selector| setting
might be unusual. The only possible values of |selector| at the time of
@@ -25029,6 +25031,7 @@
@ @<Undump a couple more things and the closing check word@>=
undump(batch_mode, error_stop_mode, interaction);
+if (interaction_option>=0) interaction=interaction_option;
undump(0, str_ptr, format_ident);
undump_int(x);
if ((x!=69069)||eof(fmt_file)) goto bad_fmt
@@ -33983,9 +33986,8 @@
Besides the flag variables that occur in the table,
a few string variables may be set using the options.
-The following is a complete list of these variables---except
-for the the |interaction| variable of \TeX.
-Flag variables are initialized with |-1| to indicate an undefined value;
+The following is a complete list of these variables.
+Variables are initialized with |-1| to indicate an undefined value;
string variables are initialized with |NULL|.
@<Global...@>=
@@ -33994,6 +33996,7 @@
static int ltxp=0;
static int parsefirstlinep=-1;
static int filelineerrorstylep=-1;
+static int interaction_option=-1;
static const char *user_progname=NULL, *output_directory=NULL, *c_job_name=NULL;
static char *dump_name=NULL;@#
int option_no_empty_page=true, option_hyphen_first=true;
@@ -34085,15 +34088,17 @@
}
-@ The ``interaction'' option sets \TeX's |interaction| variable
+@ The ``interaction'' option sets the |interaction_option| variable
based on its string argument contained in the |optarg| variable.
+If defined, the |interaction_option| will be used to set \TeX's
+|interaction| variable in the |initialize| and the |undump| functions.
@<handle the option at |option_index|@>=
else @+if (ARGUMENT_IS ("interaction"))@t\2@> {
- if (STREQ (optarg, "batchmode")) interaction = batch_mode;
- else if (STREQ (optarg, "nonstopmode")) interaction = nonstop_mode;
- else if (STREQ (optarg, "scrollmode")) interaction = scroll_mode;
- else if (STREQ (optarg, "errorstopmode")) interaction = error_stop_mode;
+ if (STREQ (optarg, "batchmode")) interaction_option = batch_mode;
+ else if (STREQ (optarg, "nonstopmode")) interaction_option = nonstop_mode;
+ else if (STREQ (optarg, "scrollmode")) interaction_option = scroll_mode;
+ else if (STREQ (optarg, "errorstopmode")) interaction_option = error_stop_mode;
else WARNING1 ("Ignoring unknown argument `%s' to --interaction", optarg);
}
More information about the tex-live-commits
mailing list.