Lines Matching refs:this

518 aisotoeuc(TWNiconv *this, char **inbuf, size_t *inbufsize,  in aisotoeuc()  argument
521 this->iobuf->myin = *inbuf; in aisotoeuc()
522 this->iobuf->myout = *outbuf; in aisotoeuc()
523 this->iobuf->insize = *inbufsize; in aisotoeuc()
524 this->iobuf->outsize = *outbufsize; in aisotoeuc()
528 if ((ret = yescSeq(this->cntl, this->iobuf)) == -1) in aisotoeuc()
533 if (zconversion(this->conv, this->iobuf) == -1) in aisotoeuc()
537 *inbuf = this->iobuf->myin; in aisotoeuc()
538 *outbuf = this->iobuf->myout; in aisotoeuc()
539 *inbufsize = this->iobuf->insize; in aisotoeuc()
540 *outbufsize = this->iobuf->outsize; in aisotoeuc()
546 adeTWNiconv(TWNiconv *this) { in adeTWNiconv() argument
547 zdeConversion(this->conv); in adeTWNiconv()
548 ydeGxCntl(this->cntl); in adeTWNiconv()
549 xdeIOBuf(this->iobuf); in adeTWNiconv()
550 free(this); in adeTWNiconv()
554 areset(TWNiconv *this) { in areset() argument
555 zdeConversion(this->conv); in areset()
556 ydeGxCntl(this->cntl); in areset()
557 xdeIOBuf(this->iobuf); in areset()
558 this->conv = zConversion(); in areset()
559 this->cntl = yGxCntl(this->conv); in areset()
560 this->iobuf = xIOBuf(); in areset()
573 zdeConversion(Conversion *this) { free(this); } in zdeConversion() argument
576 zsetplane(Conversion *this, int i) { this->myplane = i; } in zsetplane() argument
579 zconversion(Conversion *this, IOBuf *ioobj) { in zconversion() argument
582 switch (this->myplane) { in zconversion()
616 xputc(ioobj, 0xa0 + this->myplane); in zconversion()
637 ydeGxCntl(GxCntl *this) { in ydeGxCntl() argument
638 free(this); in ydeGxCntl()
642 yescSeq(GxCntl *this, IOBuf *obj) { in yescSeq() argument
652 zsetplane(this->convobj, this->gxplane[0]); in yescSeq()
653 if (this->inHLE1xConv == 1) in yescSeq()
654 this->inHLE1xSO = 0; in yescSeq()
657 if (this->inHLE1xConv == 1) { in yescSeq()
658 if (this->inHLE1xSO != 0) { in yescSeq()
662 this->inHLE1xSO = 1; in yescSeq()
665 zsetplane(this->convobj, this->gxplane[1]); in yescSeq()
680 zsetplane(this->convobj, this->gxplane[2]); in yescSeq()
683 zsetplane(this->convobj, this->gxplane[3]); in yescSeq()
689 this->gxplane[0] = 0; in yescSeq()
699 if ((this->gxc = xgetc(obj)) == -1) { in yescSeq()
705 switch (this->gxc) { in yescSeq()
708 this->mygx = 0; in yescSeq()
711 this->mygx = 1; in yescSeq()
714 this->mygx = 2; in yescSeq()
717 this->mygx = 3; in yescSeq()
720 xbackup(obj, this->gxc); in yescSeq()
727 xbackup(obj, this->gxc); in yescSeq()
733 if (c == '0' && this->mygx == 1) { /* HLE 1.x */ in yescSeq()
734 this->inHLE1xConv = 1; in yescSeq()
735 this->inHLE1xSO = 0; in yescSeq()
736 this->gxplane[1] = 1; in yescSeq()
738 this->inHLE1xConv = 0; in yescSeq()
739 this->gxplane[this->mygx] = ygetplaneno(this, c); in yescSeq()
764 xdeIOBuf(IOBuf *this) { in xdeIOBuf() argument
765 free(this); in xdeIOBuf()
769 xgetc(IOBuf *this) { in xgetc() argument
770 if (this->bufc > 0) in xgetc()
771 return (this->mybuf[--this->bufc]); in xgetc()
773 if (this->insize == 0) in xgetc()
776 this->insize--; in xgetc()
777 return (*this->myin++); in xgetc()
782 xputc(IOBuf *this, int c) { in xputc() argument
783 if (this->outsize <= 0) in xputc()
785 *(this->myout)++ = c; in xputc()
786 this->outsize--; in xputc()
791 xbackup(IOBuf *this, int c) { this->mybuf[this->bufc++] = c; } in xbackup() argument
794 xoutsize(IOBuf *this) { return (this->outsize); } in xoutsize() argument