diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-09-30 13:10:51 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2011-09-30 13:10:51 +0000 |
commit | be62200a7e0420b4a11f6cbca5848f9ea5666c93 (patch) | |
tree | 71d315b3230fc0f130283e561c4102cd710a7c84 /Build/source/texk/web2c/alephdir | |
parent | 0d9a0376342fe0ee6c449616daee87f07e09dfb1 (diff) |
TeX&Co: bug fix for unititialized line number
also add a test cases for e-TeX and pdfTeX
git-svn-id: svn://tug.org/texlive/trunk@24155 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/alephdir')
-rw-r--r-- | Build/source/texk/web2c/alephdir/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/web2c/alephdir/com16bit.ch | 2 | ||||
-rw-r--r-- | Build/source/texk/web2c/alephdir/eobase.ch | 7 |
3 files changed, 11 insertions, 5 deletions
diff --git a/Build/source/texk/web2c/alephdir/ChangeLog b/Build/source/texk/web2c/alephdir/ChangeLog index 451bdd0e605..dd148a799b5 100644 --- a/Build/source/texk/web2c/alephdir/ChangeLog +++ b/Build/source/texk/web2c/alephdir/ChangeLog @@ -1,3 +1,10 @@ +2011-09-30 Peter Breitenlohner <peb@mppmu.mpg.de> + + * com16bit.ch.ch (print_file_line): Bug fix: avoid uninitialized + lineno - from ../tex.ch. + * eobase.ch: Slightly reformulate printing of current line - + from ../etexdir/etex.ch. + 2011-09-09 Peter Breitenlohner <peb@mppmu.mpg.de> * alephbis.c (runexternalocp): Declare tempenv as const. diff --git a/Build/source/texk/web2c/alephdir/com16bit.ch b/Build/source/texk/web2c/alephdir/com16bit.ch index b84d520013c..a519182f973 100644 --- a/Build/source/texk/web2c/alephdir/com16bit.ch +++ b/Build/source/texk/web2c/alephdir/com16bit.ch @@ -2784,7 +2784,7 @@ begin else begin print_nl (""); print (full_source_filename_stack[level]); print (":"); if level=in_open then print_int (line) - else print_int (line_stack[index+1-(in_open-level)]); + else print_int (line_stack[level+1]); print (": "); end; end; diff --git a/Build/source/texk/web2c/alephdir/eobase.ch b/Build/source/texk/web2c/alephdir/eobase.ch index 391b9beb3ac..5001be06da6 100644 --- a/Build/source/texk/web2c/alephdir/eobase.ch +++ b/Build/source/texk/web2c/alephdir/eobase.ch @@ -805,10 +805,9 @@ created by the \.{\\scantokens} command. @x [22] m.313 l.6794 - e-TeX scan_tokens else begin print_nl("l."); print_int(line); @y -else if index<>in_open then {input from a pseudo file} - begin print_nl("l."); print_int(line_stack[index+1]); - end -else begin print_nl("l."); print_int(line); +else begin print_nl("l."); + if index=in_open then print_int(line) + else print_int(line_stack[index+1]); {input from a pseudo file} @z %--------------------------------------- @x [22] m.314 l.6814 - e-TeX basic |