Lines Matching defs:i

70 	int	i, k;
82 i = cbits(j);
83 if (i < ' ') {
84 if (i == '\b')
86 if (i == PRESC)
87 i = eschar;
88 else if (iscontrol(i))
91 if (i==ohc)
93 i = trtab[i];
94 if (i < 32)
101 if (widcache[i-32].fontpts == (xfont<<8) + xpts && !setwdf)
102 k = widcache[i-32].width;
104 k = getcw(i-32);
120 int i;
126 for (i=0; i<NWIDCACHE; i++)
127 widcache[i].fontpts = 0;
133 getcw(i)
134 int i;
142 if (i >= nchtab + 128-32) {
143 j = abscw(i + 32 - (nchtab+128));
146 if (i == 0) { /* a blank */
152 if ((j = fitab[xfont][i] & BYTEMASK) == 0) { /* it's not on current font */
161 j = fitab[ii][i] & BYTEMASK;
194 widcache[i].fontpts = 0;
196 widcache[i].fontpts = (xfont<<8) + xpts;
197 widcache[i].width = k;
212 { int i, ncf;
215 for (i = 0; i < ncf; i++)
216 if (codetab[xfont][i] == n)
217 return i;
222 xbits(i, bitf)
223 tchar i;
227 xfont = fbits(i);
228 k = sbits(i);
231 oldbits = sfbits(i);
275 int i, n, nf;
290 findft(i)
291 int i;
295 if ((k = i - '0') >= 0 && k <= nfonts && k < smnt)
297 for (k = 0; fontlab[k] != i; k++)
307 int i;
310 i = apts1;
313 i = inumb(&apts); /* this is a disaster for fractional point sizes */
318 casps1(i);
325 casps1(i)
326 int i;
335 if (i <= 0)
339 apts = i;
341 pts = findps(i);
349 findps(i)
350 int i;
355 if (abs(pstab[j]-i) < abs(pstab[k]-i))
365 int i, j, k;
367 i = pts;
368 for (j = 0; i > (k = pstab[j]); j++)
385 int i, j;
387 i = cbits(getch());
388 if (ischar(i) && isdigit(i)) { /* \sd or \sdd */
389 i -= '0';
390 if (i == 0) /* \s0 */
392 else if (i <= 3 && ischar(j = cbits(ch = getch())) &&
394 j = 10 * i + j - '0';
397 j = i;
398 } else if (i == '(') { /* \s(dd */
403 } else if (i == '+' || i == '-') { /* \s+, \s- */
411 if (i == '-')
469 int i, j;
472 i = getrq();
474 i = getsn();
475 if (!i || i == 'P') {
479 if (i == 'S' || i == '0')
481 if ((j = findft(i)) == -1)
482 if ((j = setfp(0, i, 0)) == -1) /* try to put it in position 0 */
497 tchar i;
502 if (ismot(i = getch()))
504 delim = cbits(i);
514 while (cbits(i = getch()) != delim && !nlflg) {
515 k = width(i);
518 if (!ismot(i)) {
520 } else if (isvmot(i)) {
521 k = absmot(i);
522 if (isnmot(i))
566 tchar i;
573 i = makem(quant(n, j));
575 i = 0;
579 return(i);
587 tchar i;
595 i = makem(j);
597 return(i);
601 tchar makem(i)
602 int i;
606 if ((j = i) < 0)
609 if (i < 0)
617 tchar getlg(i)
618 tchar i;
623 if ((lf = fontbase[fbits(i)]->ligfont) == 0) /* font lacks ligatures */
624 return(i);
626 if (cbits(j) == 'i' && (lf & LFI))
633 if (cbits(k)=='i' && (lf&LFFI))
645 j = i;
647 return(i & SFMASK | j);
667 int i, j;
671 if ((i = cbits(getch()) - '0') <= 0 || i > nfonts)
672 errprint(gettext("fp: bad font position %d"), i);
676 setfp(i, j, 0);
678 setfp(i, j, nextf);
728 /* standard font on position 0 (i.e., mounted implicitly. */
744 int i, j;
748 if (!(i = getrq()) || (i = findft(i)) < 0)
751 cstab[i] = atoi();
755 ccstab[i] = 0;
757 ccstab[i] = findps(j);
769 int i, j, k;
774 if (skip() || !(i = getrq()) || (j = findft(i)) == -1) {
801 int i;
808 i = inumb(&lss);
810 i = lss1;
811 if (i < VERT)
812 i = VERT;
814 lss = i;
823 int i;
827 if (i = atoi()) {
828 spacesz = i & 0177;
846 int i;
850 i = quant(atoi(), VERT);
853 if (i >= 0)
854 *pbp++ = MOT | VMOT | i;
856 *pbp++ = MOT | VMOT | NMOT | -i;