[BACK]Return to roff.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/roff.c between version 1.300 and 1.302

version 1.300, 2017/05/07 17:31:45 version 1.302, 2017/05/08 20:33:53
Line 213  static enum rofferr  roff_userdef(ROFF_ARGS);
Line 213  static enum rofferr  roff_userdef(ROFF_ARGS);
   
 const char *__roff_name[MAN_MAX + 1] = {  const char *__roff_name[MAN_MAX + 1] = {
         "br",           "ft",           "ll",           "sp",          "br",           "ft",           "ll",           "sp",
         "ta",           NULL,          "ta",           "ti",           NULL,
         "ab",           "ad",           "af",           "aln",          "ab",           "ad",           "af",           "aln",
         "als",          "am",           "am1",          "ami",          "als",          "am",           "am1",          "ami",
         "ami1",         "as",           "as1",          "asciify",          "ami1",         "as",           "as1",          "asciify",
Line 264  const char *__roff_name[MAN_MAX + 1] = {
Line 264  const char *__roff_name[MAN_MAX + 1] = {
         "spacewidth",   "special",      "spreadwarn",   "ss",          "spacewidth",   "special",      "spreadwarn",   "ss",
         "sty",          "substring",    "sv",           "sy",          "sty",          "substring",    "sv",           "sy",
         "T&",           "tc",           "TE",          "T&",           "tc",           "TE",
         "TH",           "ti",           "tkf",          "tl",          "TH",           "tkf",          "tl",
         "tm",           "tm1",          "tmc",          "tr",          "tm",           "tm1",          "tmc",          "tr",
         "track",        "transchar",    "trf",          "trimat",          "track",        "transchar",    "trf",          "trimat",
         "trin",         "trnt",         "troff",        "TS",          "trin",         "trnt",         "troff",        "TS",
Line 324  static struct roffmac  roffs[TOKEN_NONE] = {
Line 324  static struct roffmac  roffs[TOKEN_NONE] = {
         { roff_onearg, NULL, NULL, 0 },  /* ll */          { roff_onearg, NULL, NULL, 0 },  /* ll */
         { roff_onearg, NULL, NULL, 0 },  /* sp */          { roff_onearg, NULL, NULL, 0 },  /* sp */
         { roff_manyarg, NULL, NULL, 0 },  /* ta */          { roff_manyarg, NULL, NULL, 0 },  /* ta */
           { roff_onearg, NULL, NULL, 0 },  /* ti */
         { NULL, NULL, NULL, 0 },  /* ROFF_MAX */          { NULL, NULL, NULL, 0 },  /* ROFF_MAX */
         { roff_unsupp, NULL, NULL, 0 },  /* ab */          { roff_unsupp, NULL, NULL, 0 },  /* ab */
         { roff_line_ignore, NULL, NULL, 0 },  /* ad */          { roff_line_ignore, NULL, NULL, 0 },  /* ad */
Line 525  static struct roffmac  roffs[TOKEN_NONE] = {
Line 526  static struct roffmac  roffs[TOKEN_NONE] = {
         { roff_unsupp, NULL, NULL, 0 },  /* tc */          { roff_unsupp, NULL, NULL, 0 },  /* tc */
         { roff_TE, NULL, NULL, 0 },  /* TE */          { roff_TE, NULL, NULL, 0 },  /* TE */
         { roff_TH, NULL, NULL, 0 },  /* TH */          { roff_TH, NULL, NULL, 0 },  /* TH */
         { roff_unsupp, NULL, NULL, 0 },  /* ti */  
         { roff_line_ignore, NULL, NULL, 0 },  /* tkf */          { roff_line_ignore, NULL, NULL, 0 },  /* tkf */
         { roff_unsupp, NULL, NULL, 0 },  /* tl */          { roff_unsupp, NULL, NULL, 0 },  /* tl */
         { roff_line_ignore, NULL, NULL, 0 },  /* tm */          { roff_line_ignore, NULL, NULL, 0 },  /* tm */
Line 1009  roff_addtbl(struct roff_man *man, const struct tbl_spa
Line 1009  roff_addtbl(struct roff_man *man, const struct tbl_spa
         struct roff_node        *n;          struct roff_node        *n;
   
         if (man->macroset == MACROSET_MAN)          if (man->macroset == MACROSET_MAN)
                 man_breakscope(man, TOKEN_NONE);                  man_breakscope(man, ROFF_TS);
         n = roff_node_alloc(man, tbl->line, 0, ROFFT_TBL, TOKEN_NONE);          n = roff_node_alloc(man, tbl->line, 0, ROFFT_TBL, TOKEN_NONE);
         n->span = tbl;          n->span = tbl;
         roff_node_append(man, n);          roff_node_append(man, n);
Line 2778  roff_onearg(ROFF_ARGS)
Line 2778  roff_onearg(ROFF_ARGS)
         struct roff_node        *n;          struct roff_node        *n;
         char                    *cp;          char                    *cp;
   
           if (r->man->flags & (MAN_BLINE | MAN_ELINE) &&
               (tok == ROFF_sp || tok == ROFF_ti))
                   man_breakscope(r->man, tok);
   
         roff_elem_alloc(r->man, ln, ppos, tok);          roff_elem_alloc(r->man, ln, ppos, tok);
         n = r->man->last;          n = r->man->last;
   
Line 2826  roff_manyarg(ROFF_ARGS)
Line 2830  roff_manyarg(ROFF_ARGS)
 static enum rofferr  static enum rofferr
 roff_br(ROFF_ARGS)  roff_br(ROFF_ARGS)
 {  {
           if (r->man->flags & (MAN_BLINE | MAN_ELINE))
                   man_breakscope(r->man, ROFF_br);
         roff_elem_alloc(r->man, ln, ppos, ROFF_br);          roff_elem_alloc(r->man, ln, ppos, ROFF_br);
         if (buf->buf[pos] != '\0')          if (buf->buf[pos] != '\0')
                 mandoc_vmsg(MANDOCERR_ARG_SKIP, r->parse, ln, pos,                  mandoc_vmsg(MANDOCERR_ARG_SKIP, r->parse, ln, pos,

Legend:
Removed from v.1.300  
changed lines
  Added in v.1.302

CVSweb