From: ishikawa@ds5200.personal-media.co.jp (Chiaki Ishikawa)
Newsgroups: fj.kanakan.wnn,fj.editor.emacs
Subject: Re: jserver
Date: 9 Apr 92 11:00:37 GMT
Reply-To: ishikawa@personal-media.co.jp
Followup-To: fj.kanakan.wnn
Distribution: fj
Organization: Personal Media Corp., Tokyo Japan
In-reply-to: hatano@totoro.furukawa.co.jp's message of 2 Apr 92 08:00:48 GMT


$@@P@n(J$@$H?=$7$^$9!#(Jfollowup-to: fj.kankan.wnn$@$G$9!#(J

In article <HATANO.92Apr2170117@totoro.furukawa.co.jp> hatano@totoro.furukawa.co.jp (Tomomichi Hatano) writes:

$@GHB?Ln(J>    $@$O$8$a$^$7$F!"GHB?Ln!w8E2OEE9)$H?=(J$@$7$^$9!#(J

$@GHB?Ln(J>    $@0JA0(J fj.questions.unix $@$KF1$8<ALd$r$7$^$7$?$i!"$3$A$i$N(J Newsgroups $@$K$7(J
$@GHB?Ln(J>    $@$?J}$,NI$$$H8@$&(J mail $@$,Mh$^$7$?$N$G!"<ALd$7$^$9!#(J

$@GHB?Ln(J>    Nemacs $@$G!"(JWnn $@$r5/F0$9$k$H!"0J2<$N(J$@%(%i!<$r=PNO8e(J core dump $@$7$F$7$^$&(J
$@GHB?Ln(J>    $@$3$H$,$"$j!"Hs>o$K:$$C$F$$$^$9!#(J
$@GHB?Ln(J>    $@$I$J$?$+!"(J$@860x!"BP=hK!$K$D$$$FCN$C$F$$$kJ}$,$$$i$C$7$c$$$^$7$?$i!"65$($F(J
$@GHB?Ln(J>    $@2<$5$$!#(J
$@GHB?Ln(J>    Nemacs $@$G!"(JWnn $@$r5/F0$7$?8e(J jserver $@$r(J kill $@$7!":FEY(J jserver $@$r5/F0$7$F(J
$@GHB?Ln(J>    $@$bF1$88=>]$,$G$^$9!#(J


Nemacs + Egg + Wnn $@$rHs>o$KJXMx$K;H$C$F$$$^$9!#(JNemacs, Egg, Wnn $@$r:n$C(J
$@$?3'MM$K$O46<U$7$F$^$9!#!J:G6a$G(J$@$O(JSun $@$N(JJLE $@$O$[$H$s$I;H$C$?$3$H$,$"$j(J
$@$^$;$s!#(Jcesd $@JQ49%G!<%b%s$O(Jcron$@$+$i(Jkill $@$7$F$$$^$9!#!K(J

$@$3$NLd(J$@Bj$K4X$7$F$$$m$$$m;d$bD4$Y$F$$$^$9!#(J

Q-1: WNN $@$N:G?7%P!<%8%g%s$H4JC1$K<j$KF~$k>l=j$,$I$3$+$K$J$$$G$7(J$@$g$&$+!)(J

$@F1$8>u67$G(JDECstation $@>e$G$H$-$I$-(Jcrash $@$7$F:$$C$F$$$^$9!#(Jfj.kankan.wnn
$@$N3yAR$5$s$N%Q%C%A$G(J$@$9$3$7=u$+$j$^$7$?!#$^$?(J $@$($J$_(J $@$5$s$NJQ99$b2C$($F$$(J
$@$^$9!#;d$N;}$C$F$$$k(JWnn $@$N%P!<%8%g%s$,>/$7$U$k$$(J$@$h$&$J$N$G$9$,!":G?7$O(J 
X11R5 $@$N(J contrib$@$+$i;}$C$F$/$k$7$+$J$$$N$G$7$g$&$+!)$I$J$?$+$4B8CN$G$9(J
$@$+!)(J

$@$^$?(JWnn $@$N(J official bug report $@$O$3$N%K%e!<%9%0%k!<%W$G$h$$$N$G$7$g$&$+!)(J

$@<j85$N%P!<%8%g%s!'(J
nemacs version: nemacs-version's value is "3.3.1"
egg    version: egg-version's value is "2.24"
jserver:   4.00

Q-2: Lint $@$N=P$95$$K$J$k%a%C%;!<%8(J

$@$9$G$K(J Wnn $@:G?7HG$G$O$J$*$C$F$$$k$+$H$O;W$&$N$G$9$,!"(JWnn$@%i%$(J$@%V%i%j$K(J
lint $@$r$+$1$F$_$?$i<!$N$h$&$JLdBj$rH/8+$7$^$7$?!#$b$7:G?7HG$G$b;D$C$F(J
$@$$$?$i(J fix $@$7$F$$$?$@$1(J$@$?$i$H;W$$$^$9!#(J

$@$5$5$$$JLdBj!"L@$i$+$K%3!<%G%#%s%0%_%9!"$h$/J,$+$i$J$$$N#3E@$G$9!#(J

(a) $@$5$5$$$JLdBj(J$@!J$@$H;W$&!K(JFile: jlib/jl.c

	warning: null effect
	    (1887)  	

	$@2<$N(J <==== $@$N$H$3$m$G$9!#(J

	/* for zenkouho, assume bun_no = bun_no2 = zenkouho_suu */
static
insert_dai(buf, zenp, bun_no, bun_no2, dp, dcnt, uniq_level)
struct wnn_buf *buf;
int bun_no, bun_no2;
struct wnn_dai_bunsetsu *dp;
int dcnt;
int zenp;
int uniq_level;
{

    register WNN_BUN **b, **b0;
    register int k, l, m;
    register int cnt = 0;
    struct wnn_sho_bunsetsu *sp, *sp1;
	...
    for(k = 0, m = buf->zenkouho_dai_suu ; k < dcnt; k++){
		....
	b0 = b;
	sp1 = sp;
	for(l = 0 ; l < dp[k].sbncnt; l++){
	    /* Change KURI
	    *b++ = get_sho(buf, sp++, zenp, DAI);
	    */
	    *b = get_sho(buf, sp, zenp, DAI);
	    if(zenp == ZENKOUHO){
		if (l == dp[k].sbncnt -1){	/* ADD KURI */
		    if(buf->zenkouho_endvect != -1){
			(*b)->dai_end = (sp->status_bkwd == WNN_CONNECT_BK)? 0:1;
		    }else{
			(*b)->dai_end = 0;
		    }
		}else{
		    (*b)->dai_end = 0;
		}
	    }
	    *b++;	<==== LINT $@$,J86g$r$$$C$F$$$k!#(J 
	    sp++;		$@C1(J$@$K(J b++ $@$G$h$$$N$G$7$g$&$+!)(J
	}
	(*b0)->dai_top = (sp1->status == WNN_CONNECT)? 0:1;
/*
	(*b0)->dai_top = 1;	H.T.
*/
	(*b0)->daihyoka = dp[k].hyoka;
    }
}

(b) $@7k9=$^$:$$LdBj!#(J	jlib.V3/jlv3.c

	Warning: (754)  constant in conditional context

	$@2<$N(J <==== !!!! $@$N9T$G$9$,$3$l$OL@$i$+$K(J $@3g8L$,H4$1$F$k!#(J
		$@$9$J$o$A(J (hinsi & 0x01) != 0 $@$@$H;W$o$l$^$9$,$=$l$G(J
		$@$h$$$N$G$7$g$&$+!)(J

$@$&$o$5$G$O(Jgcc 2.x $@$O$3$&$$(J$@$&$h$&$J$N$r8+$D$1$k$H(Jwarning $@$r=P$9$=$&$G$9!#(J

static int
oldh_to_newh(hinsi, new)
int	hinsi;
unsigned short **new;
{
    register int i, j;
    unsigned short tmp[OLD_HINSI_SZ + 1];
    register int tmptmp;	/* H.T. to compile PCC */

    
    for (i = j = 0; hinsi != 0 && i < OLD_HINSI_SZ; i++) {
	if (hinsi & 0x01 != 0) {		           <============ !!!!
	    if((tmptmp = wnn_find_hinsi_by_name(new_name[i])) != -1){
		tmp[j] = tmptmp;
		j++;
	    }else{
		tmp[j] = tmptmp;
	    }

/*	H.T. unsigned short comparison with -1
	    if ((tmp[j] = wnn_find_hinsi_by_name(new_name[i])) != -1)
	    	j++;
*/
	    }
	hinsi >>= 1;
    }

    tmp[j] = -1;
    *new = tmp;
    return (j);
}

(c) jserver/de.c$@$N(Jmain $@4X?t$NCf(J

function called with variable number of arguments
    open   	de.c(234) :: de.c(805)

open $@$OIaDL#38D$N0z?t$r$H$k$N$G$9$,!"0l2U=j$G#28D$7$+$H$C$F$$$^$;$s!#(J
$@$=$N$?$a$K(Jlint $@$,%a%C%;!<%8$r=P$7$F$$(J$@$^$9!#2?$r$$$l$F$h$$$N$+J,$+$j$^(J
$@$;$s!#(J

	if ((tmpttyfd = open("/dev/tty", O_RDWR)) >= 0) { <=== $@$3$3(J$@!#(J
		ioctl(tmpttyfd, TIOCNOTTY, 0);
		close(tmpttyfd);
	}

$@$J$*9THV9f$O;d$,$9$3$7(Jmalloc(), free() $@4X78(J$@$G<j$r$$$l$^$7$?$N$G(J
$@>/$70c$&$+$b$7$l$^$;$s!#(J


--
------------------------------------------------------------------
    Chiaki Ishikawa                       Phone:+81-3-5702-0351
  Personal Media Corp.                      FAX:+81-3-5702-0359
 MY Bldg, 1-7-7 Hiratsuka,   UUNET: ... uunet!pmcgw!ishikawa, or
 Shinagawa-ku, Tokyo 142                ishikawa%pmcgw@uunet.uu.net
        JAPAN                JUNET:     ishikawa@personal-media.co.jp
------------------------------------------------------------------