Lines Matching defs:offs
97 mdoc_parseln(struct roff_man *mdoc, int ln, char *buf, int offs)
114 return roff_getcontrol(mdoc->roff, buf, &offs) ?
115 mdoc_pmacro(mdoc, ln, buf, offs) :
116 mdoc_ptext(mdoc, ln, buf, offs);
217 mdoc_ptext(struct roff_man *mdoc, int line, char *buf, int offs)
236 mdoc_macro(mdoc, MDOC_It, line, offs, &offs, buf);
246 mdoc_macro(mdoc, MDOC_It, line, offs, &offs, buf);
257 for (c = end = buf + offs; *c; c++) {
295 if (buf[offs] == '\0' && ! (mdoc->flags & MDOC_LITERAL)) {
304 roff_elem_alloc(mdoc, line, offs, MDOC_sp);
310 roff_word_alloc(mdoc, line, offs, buf+offs);
323 if (mandoc_eos(buf+offs, (size_t)(end-buf-offs)))
333 mdoc_pmacro(struct roff_man *mdoc, int ln, char *buf, int offs)
341 sv = offs;
349 while (i < 4 && strchr(" \t\\", buf[offs]) == NULL)
350 mac[i++] = buf[offs++];
364 switch (buf[offs]) {
366 cp = buf + offs + 1;
368 offs = cp - buf;
371 offs++;
379 while (buf[offs] && ' ' == buf[offs])
380 offs++;
387 if ('\0' == buf[offs] && ' ' == buf[offs - 1])
389 ln, offs - 1, NULL);
397 mdoc_macro(mdoc, tok, ln, sv, &offs, buf);
433 mdoc_macro(mdoc, tok, ln, sv, &offs, buf);