Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 126) sorted by relevance

123456

/original-bsd/usr.bin/more/
H A Dprim.c45 off_t pos; in eof_check() local
55 if (pos == NULL_POSITION || pos == ch_length()) in eof_check()
80 off_t pos;
130 pos = forw_line(pos);
181 off_t pos;
194 pos = back_line(pos);
229 off_t pos; local
257 off_t pos; local
273 off_t pos; in prepaint()
703 pos = forw_raw_line(pos);
[all …]
H A Dlinenum.c118 p->gap = p->next->pos - p->prev->pos;
128 off_t pos;
140 for (p = anchor.next; p != &anchor && p->pos < pos; p = p->next)
171 new->pos = pos;
229 find_linenum(pos) in find_linenum() argument
230 off_t pos; in find_linenum()
259 if (p->pos == pos)
276 if (p == &anchor || pos - p->prev->pos < p->pos - pos)
285 for (lno = p->line, cpos = p->pos; cpos < pos; lno++)
307 if (cpos > pos)
[all …]
H A Dposition.c61 add_forw_pos(pos) in add_forw_pos() argument
62 off_t pos; in add_forw_pos()
71 table[sc_height - 1] = pos;
77 add_back_pos(pos) in add_back_pos() argument
78 off_t pos; in add_back_pos()
87 table[0] = pos;
126 onscreen(pos) in onscreen() argument
127 off_t pos; in onscreen()
131 if (pos < table[0])
134 if (pos < table[i])
H A Dprompt.c93 ap_pos(pos) in ap_pos() argument
94 POSITION pos; in ap_pos()
127 POSITION pos; local
129 pos = position(where);
130 if (pos == NULL_POSITION)
131 pos = ch_length();
132 return (pos);
185 POSITION pos; local
192 pos = curr_byte(where);
194 ap_pos(pos);
[all …]
H A Dtags.c129 off_t pos, linepos, forw_raw_line(); in tagsearch() local
132 pos = (off_t)0; in tagsearch()
133 linenum = find_linenum(pos); in tagsearch()
148 linepos = pos; in tagsearch()
149 pos = forw_raw_line(pos); in tagsearch()
153 if (pos == NULL_POSITION) in tagsearch()
168 add_lnum(linenum, pos); in tagsearch()
/original-bsd/lib/libc/gen/
H A Dgetnetgrent.c200 pos++;
227 while (*pos == ' ' || *pos == ',' || *pos == '\t')
228 pos++;
252 pos = line;
255 while (*pos == ' ' || *pos == '\t')
256 pos++;
258 while (*pos != ' ' && *pos != '\t' && *pos != '\n' &&
260 pos++;
262 while (*pos == ' ' || *pos == '\t')
263 pos++;
[all …]
/original-bsd/lib/libc/stdio/
H A Dftell.c26 register fpos_t pos; local
38 pos = fp->_offset;
40 pos = (*fp->_seek)(fp->_cookie, (fpos_t)0, SEEK_CUR);
41 if (pos == -1L)
42 return (pos);
50 pos -= fp->_r;
52 pos -= fp->_ur;
59 pos += fp->_p - fp->_bf._base;
61 return (pos);
/original-bsd/games/tetris/
H A Dshapes.c58 fits_in(shape, pos) in fits_in() argument
60 register int pos;
64 if (board[pos] || board[pos + *o++] || board[pos + *o++] ||
65 board[pos + *o])
75 place(shape, pos, onoff) in place() argument
77 register int pos, onoff;
81 board[pos] = onoff;
82 board[pos + *o++] = onoff;
83 board[pos + *o++] = onoff;
84 board[pos + *o] = onoff;
H A Dtetris.c92 register int pos, c; local
167 place(curshape, pos, 1);
169 place(curshape, pos, 0);
176 pos += B_COLS;
184 place(curshape, pos, 1);
210 place(curshape, pos, 1);
219 place(curshape, pos, 0);
225 pos--;
232 if (fits_in(new, pos))
239 pos++;
[all …]
/original-bsd/contrib/sort/
H A Dfields.c72 { NEXTCOL(pos); }
73 if (pos >= lineend)
75 clpos->start = SEP_FLAG ? pos + 1 : pos;
76 NEXTCOL(pos);
77 clpos->end = pos;
215 return (pos);
226 return (pos);
247 nonzero = pos;
262 pos = nonzero;
263 if (pos > bufend-1)
[all …]
H A Dfiles.c79 hp = (u_char *) pos;
82 if (end - pos->data < pos->length) {
87 fread(pos->data, pos->length, 1, fd);
107 register char *end, *pos; local
145 *pos++ = REC_D;
238 pos = buf;
244 if (pos == end) {
246 *--pos = REC_D;
253 if (pos != buf) {
255 *pos++ = REC_D;
[all …]
H A Dinit.c82 char *pos; in setcolumn()
89 pos += sscanf(pos, "%d", &(col->num));
91 pos++;
94 if (*pos == '.') {
97 pos += sscanf(++pos, "%d", &(col->indent));
99 pos++;
108 pos++;
112 return (pos);
117 char *pos; in setfield()
128 pos = setcolumn(pos, cur_fld, gflag);
[all …]
/original-bsd/local/ditroff/ditroff.old.okeeffe/sunsrc/gremlin/
H A Dpoint.c96 PTMakeTextPoints(text, font, size, point, pos) in PTMakeTextPoints() argument
109 (void) PTMakePoint(pos->x, pos->y, &pt); /* bottom left */
110 (void) PTMakePoint(pos->x + (length / 2), pos->y, &pt); /* bottom midpt */
111 (void) PTMakePoint(pos->x + length, pos->y, &pt); /* bottom right */
125 register POINT *pos, *point; local
131 elt->ptlist, pos);
133 point = PTNextPoint(pos); /* bottom midpoint */
134 point->x = pos->x + (length / 2);
135 point->y = pos->y;
137 point->x = pos->x + length;
[all …]
/original-bsd/games/robots/
H A Drnd_pos.c23 static COORD pos; in rnd_pos() local
28 pos.y = rnd(Y_FIELDSIZE - 1) + 1; in rnd_pos()
29 pos.x = rnd(X_FIELDSIZE - 1) + 1; in rnd_pos()
31 } while (Field[pos.y][pos.x] != 0); in rnd_pos()
33 return &pos; in rnd_pos()
/original-bsd/local/sccscmds/sccscmds.ok/cmd/
H A Dstree.c26 struct position *pos; variable
110 bzero(pos, n); in prttree()
112 pos[i].p_node = i; in prttree()
118 pos[i].p_width = pos[rdp[i].i_pred].p_width + 1; in prttree()
126 qsort(&pos[1], maxser(&gpkt), sizeof(pos[1]), poscomp); in prttree()
130 pos[n].p_node, str, pos[n].p_depth, pos[n].p_width); in prttree()
222 node = pos[i].p_node;
223 x = pos[i].p_width;
224 y = pos[i].p_depth;
229 plline(x, y, pos[j].p_width, pos[j].p_depth);
[all …]
/original-bsd/local/sccscmds/sccscmds.2/cmd/
H A Dstree.c26 struct position *pos; variable
110 bzero(pos, n); in prttree()
112 pos[i].p_node = i; in prttree()
118 pos[i].p_width = pos[rdp[i].i_pred].p_width + 1; in prttree()
126 qsort(&pos[1], maxser(&gpkt), sizeof(pos[1]), poscomp); in prttree()
130 pos[n].p_node, str, pos[n].p_depth, pos[n].p_width); in prttree()
222 node = pos[i].p_node;
223 x = pos[i].p_width;
224 y = pos[i].p_depth;
229 plline(x, y, pos[j].p_width, pos[j].p_depth);
[all …]
/original-bsd/old/libm/libom/
H A Dgamma.c61 double log(), pos(), neg(), asym();
66 return(log(pos(arg)));
89 double log(), sin(), pos();
99 return(-log(arg*pos(arg)*temp/pi));
103 pos(arg) in pos() function
109 if(arg < 2.) return(pos(arg+1.)/arg);
110 if(arg > 3.) return((arg-1.)*pos(arg-1.));
/original-bsd/local/ditroff/ditroff.okeeffe/tbl/
H A Dvertlines.c14 int tp = 0, sl, ln, pos, epb, ept, vm; in drawvert() local
25 pos = 2 * ln - lwid + 1; in drawvert()
26 if(pos != tp) in drawvert()
27 printf("\\h'%dp'", pos - tp); in drawvert()
28 tp = pos; in drawvert()
142 pos = ept - epb; in drawvert()
143 if(pos) in drawvert()
144 printf("%s%dp", pos >= 0 ? "+" : "", pos); in drawvert()
/original-bsd/local/ditroff/ditroff.old.okeeffe/troff/
H A Dt6.c598 int pos, font; in setfp()
628 fontlab[pos] = font;
629 if (pos == 0)
631 return(pos);
641 kerntab[pos] = (char *) fontab[pos] + (fontbase[pos]->nwfont & BMASK);
643 fitab[pos] = (char *) fontab[pos] + 3 * (fontbase[pos]->nwfont & BMASK);
646 shortname, pos);
652 fontlab[pos] = font;
653 bdtab[pos] = cstab[pos] = ccstab[pos] = 0;
663 if (pos == 0)
[all …]
/original-bsd/old/libm/libm/
H A Dlgamma.c63 double log(), pos(), neg(), asym();
68 return(log(pos(arg)));
91 double log(), sin(), floor(), pos();
122 return(-log(arg*pos(arg)*sin(pi*t)/pi));
126 pos(arg) in pos() function
132 if(arg < 2.) return(pos(arg+1.)/arg);
133 if(arg > 3.) return((arg-1.)*pos(arg-1.));
/original-bsd/old/tbl/
H A Dtv.c14 int tp=0, sl, ln, pos, epb, ept, vm; in drawvert() local
22 pos = 2*ln-lwid+1; in drawvert()
23 if (pos!=tp) fprintf(tabout, "\\h'%dp'", pos-tp); in drawvert()
24 tp = pos; in drawvert()
103 pos = ept-epb; in drawvert()
104 if (pos) in drawvert()
105 fprintf(tabout, "%s%dp", pos>=0? "+" : "", pos); in drawvert()
/original-bsd/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gremlin/
H A Dlong1.c557 (void) PTMakePoint(pos.x, pos.y, &p1);
558 (void) PTMakePoint(pos.x + i * charxsize / 2, pos.y, &p1);
559 (void) PTMakePoint(pos.x + i * charxsize, pos.y, &p1);
732 (void) PTMakePoint(pos.x, pos.y, &p2);
734 pos.y, &p2);
735 (void) PTMakePoint(pos.x + i * charxsize, pos.y, &p2);
775 (void) PTMakePoint(pos.x, pos.y, &p1);
776 (void) PTMakePoint(pos.x + i * charxsize / 2, pos.y, &p1);
777 (void) PTMakePoint(pos.x + i * charxsize, pos.y, &p1);
983 pos.x = pos.y = 0;
[all …]
H A Dgraphics2.c376 POINT *point1, *pos;
387 case BOTLEFT: pos->x = point1->x;
388 pos->y = point1->y;
391 pos->y = point1->y;
394 pos->y = point1->y;
396 case CENTLEFT: pos->x = point1->x;
405 case TOPLEFT: pos->x = point1->x;
415 if ((pos->x < 0) || ((pos->x + length - charxsize) > GrXMax))
420 pos->y = GrYMax - charysize;
421 if (pos->y < 0) pos->y = 0;
[all …]
/original-bsd/usr.bin/cut/
H A Dcut.c105 register char *pos; local
145 for (pos = positions + start; start++ <= stop; *pos++ = 1);
164 register char *pos; local
167 pos = positions + 1;
173 if (*pos++)
192 register char *pos, *p, sep; local
213 pos = positions + 1;
214 for (field = maxval, p = lbuf; field; --field, ++pos) {
215 if (*pos) {
/original-bsd/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/
H A Dhgraph.c177 POINT pos; local
187 pos.y = pnt.y;
192 pos.y = pnt.y;
203 pos.y = pnt.y;
208 pos.y = pnt.y - length;
219 pos.y = pnt.y;
241 pos.y = pnt.y - length;
247 pos.y = pnt.y + height;
253 pos.y = pnt.y;
259 pos.y = pnt.y + height;
[all …]

123456