Lines Matching refs:clx

30 wvReleaseCLX (CLX * clx)  in wvReleaseCLX()  argument
33 for (i = 0; i < clx->grpprl_count; i++) in wvReleaseCLX()
34 wvFree (clx->grpprl[i]); in wvReleaseCLX()
35 wvFree (clx->grpprl); in wvReleaseCLX()
36 wvFree (clx->cbGrpprl); in wvReleaseCLX()
37 wvReleasePCD_PLCF (clx->pcd, clx->pos); in wvReleaseCLX()
41 wvBuildCLXForSimple6 (CLX * clx, FIB * fib) in wvBuildCLXForSimple6() argument
43 wvInitCLX (clx); in wvBuildCLXForSimple6()
44 clx->nopcd = 1;; in wvBuildCLXForSimple6()
46 clx->pcd = (PCD *) wvMalloc (clx->nopcd * sizeof (PCD)); in wvBuildCLXForSimple6()
47 clx->pos = (U32 *) wvMalloc ((clx->nopcd + 1) * sizeof (U32)); in wvBuildCLXForSimple6()
49 clx->pos[0] = 0; in wvBuildCLXForSimple6()
50 clx->pos[1] = fib->ccpText; in wvBuildCLXForSimple6()
52 wvInitPCD (&(clx->pcd[0])); in wvBuildCLXForSimple6()
53 clx->pcd[0].fc = fib->fcMin; in wvBuildCLXForSimple6()
60 clx->pcd[0].fc *= 2; in wvBuildCLXForSimple6()
61 clx->pcd[0].fc |= 0x40000000UL; in wvBuildCLXForSimple6()
64 clx->pcd[0].prm.fComplex = 0; in wvBuildCLXForSimple6()
65 clx->pcd[0].prm.para.var1.isprm = 0; in wvBuildCLXForSimple6()
85 wvGetCLX (wvVersion ver, CLX * clx, U32 offset, U32 len, U8 fExtChar, in wvGetCLX() argument
95 wvInitCLX (clx); in wvGetCLX()
105 clx->grpprl_count++; in wvGetCLX()
106 clx->cbGrpprl = in wvGetCLX()
107 (U16 *) realloc (clx->cbGrpprl, in wvGetCLX()
108 sizeof (U16) * clx->grpprl_count); in wvGetCLX()
109 clx->cbGrpprl[clx->grpprl_count - 1] = cb; in wvGetCLX()
110 clx->grpprl = in wvGetCLX()
111 (U8 **) realloc (clx->grpprl, in wvGetCLX()
112 sizeof (U8 *) * (clx->grpprl_count)); in wvGetCLX()
113 clx->grpprl[clx->grpprl_count - 1] = (U8 *) wvMalloc (cb); in wvGetCLX()
115 clx->grpprl[clx->grpprl_count - 1][i] = read_8ubit (fd); in wvGetCLX()
136 wvGetPCD_PLCF (&clx->pcd, &clx->pos, &clx->nopcd, in wvGetCLX()
147 if (!(wvGuess16bit (clx->pcd, clx->pos, clx->nopcd))) in wvGetCLX()
152 for (i = 0; i < clx->nopcd; i++) in wvGetCLX()
154 clx->pcd[i].fc *= 2; in wvGetCLX()
155 clx->pcd[i].fc |= 0x40000000UL; in wvGetCLX()
182 wvGetPieceBoundsFC (U32 * begin, U32 * end, CLX * clx, U32 piececount) in wvGetPieceBoundsFC() argument
185 if ((piececount + 1) > clx->nopcd) in wvGetPieceBoundsFC()
189 clx->nopcd)); in wvGetPieceBoundsFC()
192 *begin = wvNormFC (clx->pcd[piececount].fc, &type); in wvGetPieceBoundsFC()
195 *end = *begin + (clx->pos[piececount + 1] - clx->pos[piececount]); in wvGetPieceBoundsFC()
197 *end = *begin + ((clx->pos[piececount + 1] - clx->pos[piececount]) * 2); in wvGetPieceBoundsFC()
203 wvGetPieceBoundsCP (U32 * begin, U32 * end, CLX * clx, U32 piececount) in wvGetPieceBoundsCP() argument
205 if ((piececount + 1) > clx->nopcd) in wvGetPieceBoundsCP()
207 *begin = clx->pos[piececount]; in wvGetPieceBoundsCP()
208 *end = clx->pos[piececount + 1]; in wvGetPieceBoundsCP()
225 while (i < ps->clx.nopcd) in wvAutoCharset()
227 wvNormFC (ps->clx.pcd[i].fc, &flag); in wvAutoCharset()
255 wvQuerySamePiece (U32 fcTest, CLX * clx, U32 piece) in wvQuerySamePiece() argument
262 ("Same Piece, %x %x %x\n", fcTest, clx->pcd[piece].fc, in wvQuerySamePiece()
263 wvGetEndFCPiece (piece, clx))); in wvQuerySamePiece()
264 if ((fcTest >= wvNormFC (clx->pcd[piece].fc, NULL)) in wvQuerySamePiece()
265 && (fcTest < wvGetEndFCPiece (piece, clx))) in wvQuerySamePiece()
272 wvGetPieceFromCP (U32 currentcp, CLX * clx) in wvGetPieceFromCP() argument
275 while (i < clx->nopcd) in wvGetPieceFromCP()
279 i, currentcp, clx->pos[i], clx->pos[i + 1])); in wvGetPieceFromCP()
280 if ((currentcp >= clx->pos[i]) && (currentcp < clx->pos[i + 1])) in wvGetPieceFromCP()
289 wvGetEndFCPiece (U32 piece, CLX * clx) in wvGetEndFCPiece() argument
293 U32 offset = clx->pos[piece + 1] - clx->pos[piece]; in wvGetEndFCPiece()
295 wvTrace (("offset is %x, befc is %x\n", offset, clx->pcd[piece].fc)); in wvGetEndFCPiece()
296 fc = wvNormFC (clx->pcd[piece].fc, &flag); in wvGetEndFCPiece()
313 wvConvertCPToFC (U32 currentcp, CLX * clx) in wvConvertCPToFC() argument
319 while (i < clx->nopcd) in wvConvertCPToFC()
321 if ((currentcp >= clx->pos[i]) && (currentcp < clx->pos[i + 1])) in wvConvertCPToFC()
323 currentfc = wvNormFC (clx->pcd[i].fc, &flag); in wvConvertCPToFC()
325 currentfc += (currentcp - clx->pos[i]); in wvConvertCPToFC()
327 currentfc += ((currentcp - clx->pos[i]) * 2); in wvConvertCPToFC()
336 currentfc = wvNormFC (clx->pcd[i].fc, &flag); in wvConvertCPToFC()
338 currentfc += (currentcp - clx->pos[i]); in wvConvertCPToFC()
340 currentfc += ((currentcp - clx->pos[i]) * 2); in wvConvertCPToFC()