home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / fj / sources / d / 559 < prev    next >
Encoding:
Text File  |  1993-01-28  |  2.0 KB  |  76 lines

  1. Newsgroups: fj.sources.d
  2. Path: sparky!uunet!ccut!news.u-tokyo.ac.jp!wnoc-tyo-news!cs.titech!is.titech!ss.titech!ssasaki
  3. From: ssasaki@ee.titech.ac.jp (Shigehiko Sasaki)
  4. Subject: Ng 1.3L Bug fix 2
  5. Message-ID: <SSASAKI.93Jan28212037@fnews.ee.titech.ac.jp>
  6. Sender: news@ss.titech.ac.jp
  7. Nntp-Posting-Host: fnews.ee.titech.ac.jp
  8. Organization: Dept. of Electrical and Electoronics., Tokyo Inst. of Tech. 
  9.     Tokyo, Japan.
  10. Distribution: fj
  11. Date: Thu, 28 Jan 1993 12:21:23 GMT
  12. Lines: 62
  13.  
  14. $@:4!9LZ(J@$@%Q%o%((J$@%l(J.$@El9)Bg(J $@$G$9!#(J
  15.  
  16. Ng1.3L$@$K!"$^$?%P%0$,8+$D$+$j$^$7$?!#(J
  17. kanji.c$@$NCf$G(J free()$@$KITEv$J0z$-?t$rM?$($F$$$k(J$@$H$3$m$,$"$j$^$7$?!#(J
  18.  
  19. #ifdef HANKANA $@$NHO0OFb$J$N$G(J #undef HANKANA$@$G%3%s%Q%$%k$7$??M$O(J
  20. $@:F%3%s%Q%$%k$9(J$@$kI,MW$O$"$j$^$;$s!#(J
  21.  
  22. $@<:Ni$7$^$7$?!#(J
  23.  
  24. *** kanji.c~    Wed Jan 27 10:52:52 1993
  25. --- kanji.c    Wed Jan 27 10:56:40 1993
  26. ***************
  27. *** 1392,1404 ****
  28.   {
  29.       register int    c1, c2;        /* 90.07.25  Add "register". */
  30.                       /*              by S.Yoshida */
  31. !     register char    *porg, *cp, *endcp;
  32.   
  33.       if ( len == 0 ) return(0);
  34. !     if((cp = malloc((unsigned)(len))) == NULL) {
  35.           ewprintf("Could not allocate %d bytes", len);
  36.           return(-1);
  37.       }
  38.       bcopy(p, cp, len);
  39.       endcp = cp + len;
  40.       porg = p;
  41. --- 1392,1405 ----
  42.   {
  43.       register int    c1, c2;        /* 90.07.25  Add "register". */
  44.                       /*              by S.Yoshida */
  45. !     register char    *porg, *tmpstr, *cp, *endcp;
  46.   
  47.       if ( len == 0 ) return(0);
  48. !     if((tmpstr = malloc((unsigned)(len))) == NULL) {
  49.           ewprintf("Could not allocate %d bytes", len);
  50.           return(-1);
  51.       }
  52. +     cp = tmpstr;
  53.       bcopy(p, cp, len);
  54.       endcp = cp + len;
  55.       porg = p;
  56. ***************
  57. *** 1417,1423 ****
  58.               *p++ = c1;
  59.           }
  60.       }
  61. !     free(cp);
  62.       return(p - porg);
  63.   }
  64.   #else  /* not HANKANA */
  65. --- 1418,1424 ----
  66.               *p++ = c1;
  67.           }
  68.       }
  69. !     free(tmpstr);
  70.       return(p - porg);
  71.   }
  72.   #else  /* not HANKANA */
  73. --
  74. $@!!!!!!!!El5~9)6HBg3X!!EE5$EE;R9)3X@l96!!?<Hx8&5f<<!!(J(M1)$@!!:4!9LZLPI'(J
  75. $@!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(Jssasaki@ee.titech.ac.jp
  76.