| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219 |
- @x tex.web:193:
- @d banner=='This is TeX, Version 3.141592653' {printed when \TeX\ starts}
- @y
- @d banner=='This is TeX, Version 3.141592653 (gotex v0.0-prerelease)' {printed when \TeX\ starts}
- @z
- @x tex.web:287:
- start_of_TEX@t\hskip-2pt@>, end_of_TEX@t\hskip-2pt@>,@,final_end;
- @y
- start_of_TEX;
- @z
- @x tex.web:378:
- @d othercases == others: {default for cases not listed explicitly}
- @y
- @d othercases == else {default for cases not listed explicitly}
- @d write_ln(#)==writeln(#)
- @d read_ln(#)==readln(#)
- @z
- @x tex.web:948:
- @p function input_ln(var f:alpha_file;@!bypass_eoln:boolean):boolean;
- {inputs the next line or returns |false|}
- var last_nonblank:0..buf_size; {|last| with trailing blanks removed}
- begin if bypass_eoln then if not eof(f) then get(f);
- @y
- @p function input_ln(var f:alpha_file;@!bypass_eoln:boolean):boolean;
- {inputs the next line or returns |false|}
- var last_nonblank:0..buf_size; {|last| with trailing blanks removed}
- begin if bypass_eoln then if not eof(f) and eoln(f) then get(f);
- @z
- @x tex.web:1002:
- @d update_terminal == break(term_out) {empty the terminal output buffer}
- @d clear_terminal == break_in(term_in,true) {clear the terminal input buffer}
- @d wake_up_terminal == do_nothing {cancel the user's cancellation of output}
- @y
- @d update_terminal == {empty the terminal output buffer}
- @d clear_terminal == {clear the terminal input buffer}
- @d wake_up_terminal == do_nothing {cancel the user's cancellation of output}
- @z
- @x tex.web:1035:
- if format_ident=0 then
- begin write_ln(term_out,'Buffer size exceeded!'); goto final_end;
- @y
- if format_ident=0 then
- begin write_ln(term_out,'Buffer size exceeded!'); panic(final_end);
- @z
- @x tex.web:1078:
- @p function init_terminal:boolean; {gets the terminal input started}
- label exit;
- begin t_open_in;
- loop@+begin wake_up_terminal; write(term_out,'**'); update_terminal;
- @.**@>
- if not input_ln(term_in,true) then {this shouldn't happen}
- begin write_ln(term_out);
- write(term_out,'! End of file on the terminal... why?');
- @y
- @p function init_terminal:boolean; {gets the terminal input started}
- label exit;
- begin t_open_in;
- loop@+begin wake_up_terminal; write(term_out,'**'); update_terminal;
- @.**@>
- if not input_ln(term_in,true) then {this shouldn't happen}
- begin write_ln(term_out);
- write_ln(term_out,'! End of file on the terminal... why?');
- @z
- @x tex.web:1255:
- @p @!init function get_strings_started:boolean; {initializes the string pool,
- but returns |false| if something goes wrong}
- label done,exit;
- var k,@!l:0..255; {small indices or counters}
- @!m,@!n:text_char; {characters input from |pool_file|}
- @!g:str_number; {garbage}
- @!a:integer; {accumulator for check sum}
- @!c:boolean; {check sum has been checked}
- begin pool_ptr:=0; str_ptr:=0; str_start[0]:=0;
- @y
- @p @!init function get_strings_started:boolean; {initializes the string pool,
- but returns |false| if something goes wrong}
- label done,exit;
- var k,@!l:0..255; {small indices or counters}
- @!m,@!n:text_char; {characters input from |pool_file|}
- @!g:str_number; {garbage}
- @!a:integer; {accumulator for check sum}
- @!c:boolean; {check sum has been checked}
- begin
- if g=0 then;
- pool_ptr:=0; str_ptr:=0; str_start[0]:=0;
- @z
- @x tex.web:1871:
- procedure jump_out;
- begin goto end_of_TEX;
- end;
- @y
- procedure jump_out;
- begin panic(end_of_TEX);
- end;
- @z
- @x tex.web:10431:
- @!tfm_file:byte_file;
- @y
- @!tfm_file:byte_file;
- buf:eight_bits;
- @z
- @x tex.web:16389:
- @ @<Other local variables for |try_break|@>=
- @!prev_prev_r:pointer; {a step behind |prev_r|, if |type(prev_r)=delta_node|}
- @!s:pointer; {runs through nodes ahead of |cur_p|}
- @!q:pointer; {points to a new node being created}
- @!v:pointer; {points to a glue specification or a node ahead of |cur_p|}
- @!t:integer; {node count, if |cur_p| is a discretionary node}
- @!f:internal_font_number; {used in character width calculation}
- @!l:halfword; {line number of current active node}
- @!node_r_stays_active:boolean; {should node |r| remain in the active list?}
- @!line_width:scaled; {the current line will be justified to this width}
- @!fit_class:very_loose_fit..tight_fit; {possible fitness class of test line}
- @!b:halfword; {badness of test line}
- @!d:integer; {demerits of test line}
- @!artificial_demerits:boolean; {has |d| been forced to zero?}
- @!save_link:pointer; {temporarily holds value of |link(cur_p)|}
- @!shortfall:scaled; {used in badness calculations}
- @y
- @ @<Other local variables for |try_break|@>=
- @!prev_prev_r:pointer; {a step behind |prev_r|, if |type(prev_r)=delta_node|}
- @!s:pointer; {runs through nodes ahead of |cur_p|}
- @!q:pointer; {points to a new node being created}
- @!v:pointer; {points to a glue specification or a node ahead of |cur_p|}
- @!t:integer; {node count, if |cur_p| is a discretionary node}
- @!f:internal_font_number; {used in character width calculation}
- @!l:halfword; {line number of current active node}
- @!node_r_stays_active:boolean; {should node |r| remain in the active list?}
- @!line_width:scaled; {the current line will be justified to this width}
- @!fit_class:very_loose_fit..tight_fit; {possible fitness class of test line}
- @!b:halfword; {badness of test line}
- @!d:integer; {demerits of test line}
- @!artificial_demerits:boolean; {has |d| been forced to zero?}
- @!shortfall:scaled; {used in badness calculations}
- @z
- @x tex.web:23664:
- procedure show_whatever;
- label common_ending;
- var p:pointer; {tail of a token list to show}
- begin case cur_chr of
- @y
- procedure show_whatever;
- label common_ending;
- var p:pointer; {tail of a token list to show}
- begin
- if p=0 then;
- case cur_chr of
- @z
- @x tex.web:24303:
- main_control; {come to life}
- final_cleanup; {prepare for death}
- end_of_TEX: close_files_and_terminate;
- final_end: ready_already:=0;
- end.
- @y
- main_control; {come to life}
- final_cleanup; {prepare for death}
- close_files_and_terminate;
- final_end: ready_already:=0;
- end.
- @z
- @x tex.web:24324:
- procedure close_files_and_terminate;
- var k:integer; {all-purpose index}
- begin @<Finish the extensions@>; new_line_char:=-1;
- @!stat if tracing_stats>0 then @<Output statistics about this job@>;@;@+tats@/
- wake_up_terminal; @<Finish the \.{DVI} file@>;
- if log_opened then
- begin wlog_cr; a_close(log_file); selector:=selector-2;
- if selector=term_only then
- begin print_nl("Transcript written on ");
- @.Transcript written...@>
- slow_print(log_name); print_char(".");
- end;
- end;
- end;
- @y
- procedure close_files_and_terminate;
- var k:integer; {all-purpose index}
- begin @<Finish the extensions@>; new_line_char:=-1;
- @!stat if tracing_stats>0 then @<Output statistics about this job@>;@;@+tats@/
- wake_up_terminal; @<Finish the \.{DVI} file@>;
- if log_opened then
- begin wlog_cr; a_close(log_file); selector:=selector-2;
- if selector=term_only then
- begin print_nl("Transcript written on ");
- @.Transcript written...@>
- slow_print(log_name); print_char(".");
- end;
- end;
- write_ln(term_out);
- end;
- @z
- @x tex.web:24656:
- procedure do_extension;
- var i,@!j,@!k:integer; {all-purpose integers}
- @!p,@!q,@!r:pointer; {all-purpose pointers}
- begin case cur_chr of
- @y
- procedure do_extension;
- var k:integer; {all-purpose integers}
- @!p:pointer; {all-purpose pointers}
- begin case cur_chr of
- @z
|