Skip to content

Commit

Permalink
[WEB] 'current_option' runs from '0..n_options'.
Browse files Browse the repository at this point in the history
See almost any other WEB change file.

git-svn-id: svn://tug.org/texlive/trunk/Build/source@68606 c570f23f-e606-0410-a88d-b1316a301751
  • Loading branch information
Andreas Scherer committed Oct 21, 2023
1 parent 02eb356 commit 049beb0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions texk/web2c/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2023-10-21 Andreas Scherer <https://ascherer.github.io>

* tangleboot.pin,
* tangle.ch,
* weav-twill.ch,
* weave.ch: 'current_option' runs from '0..n_options'.

2023-10-13 Andreas Scherer <https://ascherer.github.io>

* help.h,
Expand Down
2 changes: 1 addition & 1 deletion texk/web2c/tangle.ch
Original file line number Diff line number Diff line change
Expand Up @@ -681,7 +681,7 @@ Parse a Unix-style command line.

@<Define |parse_arguments|@> =
procedure parse_arguments;
const n_options = 10; {Pascal won't count array lengths for us.}
const n_options = 9; {Pascal won't count array lengths for us.}
var @!long_options: array[0..n_options] of getopt_struct;
@!getopt_return_val: integer;
@!option_index: c_int_type;
Expand Down
2 changes: 1 addition & 1 deletion texk/web2c/tangleboot.pin
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ end{:32}else{33:}begin writeln(stdout,'. (l.',line:1,')');
for j:=1 to outptr do write(stdout,xchr[outbuf[j-1]]);
write(stdout,'... ');end{:33};fflush(stdout);history:=2;
{debugskipped:=debugcycle;debughelp;}end;
{:31}{188:}procedure parsearguments;const noptions=10;
{:31}{188:}procedure parsearguments;const noptions=9;
var longoptions:array[0..noptions]of getoptstruct;
getoptreturnval:integer;optionindex:cinttype;currentoption:0..noptions;
len:integer;begin{190:}currentoption:=0;
Expand Down
4 changes: 2 additions & 2 deletions texk/web2c/weav-twill.ch
Original file line number Diff line number Diff line change
Expand Up @@ -692,9 +692,9 @@ var lhs:integer;
Section 264.

@x WEAVE.CH
const n_options = 5; {Pascal won't count array lengths for us.}
@y
const n_options = 4; {Pascal won't count array lengths for us.}
@y
const n_options = 3; {Pascal won't count array lengths for us.}
@z

@x WEAVE.CH
Expand Down
2 changes: 1 addition & 1 deletion texk/web2c/weave.ch
Original file line number Diff line number Diff line change
Expand Up @@ -563,7 +563,7 @@ Parse a Unix-style command line.
@<Define |parse_arguments|@> =
procedure parse_arguments;
const n_options = 5; {Pascal won't count array lengths for us.}
const n_options = 4; {Pascal won't count array lengths for us.}
var @!long_options: array[0..n_options] of getopt_struct;
@!getopt_return_val: integer;
@!option_index: c_int_type;
Expand Down

0 comments on commit 049beb0

Please sign in to comment.