07.10.2014 Views

Complete issue 10:1 as one pdf - TUG

Complete issue 10:1 as one pdf - TUG

Complete issue 10:1 as one pdf - TUG

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Page 19 : Changes to the Programs and Fonts 20 February 1989<br />

342. \input a\romannumerall etc.; similar to bug 339. (25May88)<br />

Qx module 464<br />

Qp function str-toks:pointer; (changes the current string to a token list)<br />

QY<br />

Qp function str-toks(Q!b:pool-pointer):pointer;<br />

(changes the string I str-pool[b. .pool-ptr] I to a token list)<br />

Qz<br />

Qx module 464, continued<br />

p:=temp-head; link(p):=null; k:=str-start[str-ptr] ;<br />

QY<br />

p:=temp-head; link(p):=null; k:=b;<br />

Qz<br />

Qx module 464, concluded<br />

pool-ptr:=str-start[str-ptr]; str-toks:=p;<br />

QY<br />

pool-ptr:=b; str-toks:=p;<br />

Qz<br />

Qx module 465<br />

begin get-x-token; scan-something-internal (tok-val,false);<br />

if cur-val-level>=ident-val then QcCopy the token list@><br />

else begin old-setting:=selector; selector:=new-string;<br />

QY<br />

Q!b:pool-pointer; (b<strong>as</strong>e of temporary string)<br />

begin get-x-token; scan~something~internal(tok~val,false);<br />

if cur-val-level>=ident-val then @<br />

else begin old-setting:=selector; selector:=new-string; b:=pool-ptr;<br />

Qz<br />

Qx module 465, continued<br />

selector:=old-setting; the-toks:=str-toks;<br />

QY<br />

selector: =old-setting; the-toks : =str-toks (b);<br />

Qz<br />

Qx module 470<br />

begin c:=cur-chr; @;<br />

old-setting:=selector; selector:=new-string;<br />

WPrint the result of command IclQ>;<br />

selector:=old-setting; link(garbage):=str-toks; ins-list(link(temp-head));<br />

QY<br />

Q!b:pool-pointer; {b<strong>as</strong>e of temporary string)<br />

begin c:=cur-chr; @;<br />

old-setting:=selector; selector:=new-string; b:=pool-ptr;<br />

@;<br />

selector:=old-setting; link(garbage) :=str-toks(b) ; ins-list (link(temp-head)) ;<br />

02<br />

343. **\input\romannumeralb confusion byp<strong>as</strong>sed (25May88)<br />

Qx module 525<br />

begin if (pool-ptr+name-length>pool-size) or (str-ptr=maxstrings then<br />

QY<br />

begin if (p~~l~ptr+name~length>pool~size)or(str~ptr=max~strings)or<br />

(cur-length>O) then<br />

Qz

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!