Lines Matching defs:pos
278 struct mdoc_arg **reta, int *pos, char *buf)
298 ipos = *pos;
342 tmpv.pos = *pos;
369 *pos = ipos;
415 mdoc_args(struct roff_man *mdoc, int line, int *pos,
440 return args(mdoc, line, pos, buf, fl, v);
444 args(struct roff_man *mdoc, int line, int *pos,
451 if (buf[*pos] == '\0') {
454 mandoc_msg(MANDOCERR_ARG_QUOTE, line, *pos, NULL);
462 *v = buf + *pos;
464 if (fl == ARGSFL_DELIM && args_checkpunct(buf, *pos))
492 *pos += (int)(p - *v) + 1;
493 while (buf[*pos] == ' ' && buf[*pos + 1] == ' ')
494 (*pos)++;
501 if (buf[*pos] == '\0' || buf[*pos + 1] == '\0')
507 line, *pos, NULL);
508 *pos += (int)(p - *v);
529 (mdoc->flags & MDOC_PHRASE && buf[*pos] == '\"')) {
531 *v = &buf[++(*pos)];
535 for ( ; buf[*pos]; (*pos)++) {
538 buf[*pos - pairs] = buf[*pos];
539 if ('\"' != buf[*pos])
542 if ('\"' != buf[*pos + 1])
546 (*pos)++;
549 buf[*pos - pairs] = '\0';
551 if (buf[*pos] == '\0') {
554 line, *pos, NULL);
559 buf[(*pos)++] = '\0';
561 if ('\0' == buf[*pos])
564 while (' ' == buf[*pos])
565 (*pos)++;
567 if ('\0' == buf[*pos])
568 mandoc_msg(MANDOCERR_SPACE_EOL, line, *pos, NULL);
573 p = &buf[*pos];
574 *v = roff_getarg(mdoc->roff, &p, line, pos);
642 struct mdoc_argv *v, int *pos, char *buf)
648 if (buf[*pos] == '-')
650 ac = args(mdoc, line, pos, buf, ARGSFL_NONE, &p);
666 struct mdoc_argv *v, int *pos, char *buf)
671 ac = args(mdoc, line, pos, buf, ARGSFL_NONE, &p);