Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!wnoc-sfc-news!wnoc-kyo-news!aist-nara!odins-suita!ougw2!itserv.it.okayama-u.ac.jp!usenet
From: kagotani@in.it.okayama-u.ac.jp (Hiroto Kagotani)
Newsgroups: fj.comp.texhax
Subject: Re: [Q] xdvik18f-j1.0 on Solaris2.5
Date: 19 Apr 1996 02:42:02 GMT
Lines: 32
Message-ID: <4l6uhq$nt7@itserv.it.okayama-u.ac.jp>
References: <YOSHINO.96Apr18012318@janus.is.tokushima-u.ac.jp>
	<t0220lm76gf.fsf@nirvana.cs.titech.ac.jp>
NNTP-Posting-Host: bonito.in.it.okayama-u.ac.jp
In-reply-to: hagiwara@cs.titech.ac.jp's message of 18 Apr 1996 08:53:52 +0900
Xref: galaxy.trc.rwcp.or.jp fj.comp.texhax:7798
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.comp.texhax&nb=7798&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

> $B$4<ALd$N7o$H$O4X78$J$$$G$9$,!"(Bexpert mode $B$N$H$-$K%^!<%/$7$F$bMn$A$^$9$h$M!#(B
> toc.c $B$r0J2<$N$h$&$K$9$k$H$$$$$H;W$$$^$9$,!#(B

$BF1$8$/C1$J$k%P%0%l%]!<%H(B&$B%Q%C%A$G$9$,!"(BASCIIDNP ($B$D$^$j(B NOZEIT) $B$rM-8z(B
$B$K$7$F!"(BVFlib2.21 $B$N(B doc/man.dvi $B$rI=<($5$;$k$H!"(B10$B%Z!<%8L\$GMn$A$^$9!#(B

$B0J2<$N%Q%C%A$GD>$j$^$7$?!#(B

diff -ru ../../xdvik18f-j1.0/xdvik/dvi_init.c ./dvi_init.c
--- ../../xdvik18f-j1.0/xdvik/dvi_init.cFri Apr 19 11:33:55 1996
+++ ./dvi_init.cThu Apr 18 17:50:01 1996
@@ -922,11 +922,13 @@
 base = n & 0xffffff;
 index = n >> 24;
 
-for (tnp = currinf.tn_head; tnp != NULL; tnp = tnp->next)
-    if (tnp->TeXnumber == base) {
-real_fontp = tnp->fontp;
-break;
-    }
+if (base < currinf.tn_table_len) real_fontp = currinf.tn_table[base];
+else
+    for (tnp = currinf.tn_head; tnp != NULL; tnp = tnp->next)
+if (tnp->TeXnumber == base) {
+    real_fontp = tnp->fontp;
+    break;
+}
 tnp = (struct tn *)
 xmalloc((unsigned) sizeof(struct tn), "TeXnumber structure");
 tnp->next = tn_head;
--
$BdFC+M5?M(B <kagotani@in.it.okayama-u.ac.jp>
