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

Diff for /mandoc/roff.c between version 1.328 and 1.330

version 1.328, 2018/04/11 17:11:13 version 1.330, 2018/08/10 04:41:25
Line 197  static enum rofferr  roff_line_ignore(ROFF_ARGS);
Line 197  static enum rofferr  roff_line_ignore(ROFF_ARGS);
 static  void             roff_man_alloc1(struct roff_man *);  static  void             roff_man_alloc1(struct roff_man *);
 static  void             roff_man_free1(struct roff_man *);  static  void             roff_man_free1(struct roff_man *);
 static  enum rofferr     roff_manyarg(ROFF_ARGS);  static  enum rofferr     roff_manyarg(ROFF_ARGS);
   static  enum rofferr     roff_nop(ROFF_ARGS);
 static  enum rofferr     roff_nr(ROFF_ARGS);  static  enum rofferr     roff_nr(ROFF_ARGS);
 static  enum rofferr     roff_onearg(ROFF_ARGS);  static  enum rofferr     roff_onearg(ROFF_ARGS);
 static  enum roff_tok    roff_parse(struct roff *, char *, int *,  static  enum roff_tok    roff_parse(struct roff *, char *, int *,
Line 490  static struct roffmac  roffs[TOKEN_NONE] = {
Line 491  static struct roffmac  roffs[TOKEN_NONE] = {
         { roff_line_ignore, NULL, NULL, 0 },  /* nhychar */          { roff_line_ignore, NULL, NULL, 0 },  /* nhychar */
         { roff_unsupp, NULL, NULL, 0 },  /* nm */          { roff_unsupp, NULL, NULL, 0 },  /* nm */
         { roff_unsupp, NULL, NULL, 0 },  /* nn */          { roff_unsupp, NULL, NULL, 0 },  /* nn */
         { roff_unsupp, NULL, NULL, 0 },  /* nop */          { roff_nop, NULL, NULL, 0 },  /* nop */
         { roff_nr, NULL, NULL, 0 },  /* nr */          { roff_nr, NULL, NULL, 0 },  /* nr */
         { roff_unsupp, NULL, NULL, 0 },  /* nrf */          { roff_unsupp, NULL, NULL, 0 },  /* nrf */
         { roff_line_ignore, NULL, NULL, 0 },  /* nroff */          { roff_line_ignore, NULL, NULL, 0 },  /* nroff */
Line 2845  roff_TE(ROFF_ARGS)
Line 2846  roff_TE(ROFF_ARGS)
                 free(buf->buf);                  free(buf->buf);
                 buf->buf = mandoc_strdup(".sp");                  buf->buf = mandoc_strdup(".sp");
                 buf->sz = 4;                  buf->sz = 4;
                   *offs = 0;
                 return ROFF_REPARSE;                  return ROFF_REPARSE;
         }          }
         r->tbl = NULL;          r->tbl = NULL;
Line 3160  roff_eo(ROFF_ARGS)
Line 3162  roff_eo(ROFF_ARGS)
 }  }
   
 static enum rofferr  static enum rofferr
   roff_nop(ROFF_ARGS)
   {
           while (buf->buf[pos] == ' ')
                   pos++;
           *offs = pos;
           return ROFF_RERUN;
   }
   
   static enum rofferr
 roff_tr(ROFF_ARGS)  roff_tr(ROFF_ARGS)
 {  {
         const char      *p, *first, *second;          const char      *p, *first, *second;
Line 3364  roff_userdef(ROFF_ARGS)
Line 3375  roff_userdef(ROFF_ARGS)
                             ln, (int)(cp - n1), NULL);                              ln, (int)(cp - n1), NULL);
                         free(buf->buf);                          free(buf->buf);
                         buf->buf = n1;                          buf->buf = n1;
                           *offs = 0;
                         return ROFF_IGN;                          return ROFF_IGN;
                 }                  }
   
Line 3458  roff_renamed(ROFF_ARGS)
Line 3470  roff_renamed(ROFF_ARGS)
             buf->buf[pos] == '\0' ? "" : " ", buf->buf + pos) + 1;              buf->buf[pos] == '\0' ? "" : " ", buf->buf + pos) + 1;
         free(buf->buf);          free(buf->buf);
         buf->buf = nbuf;          buf->buf = nbuf;
           *offs = 0;
         return ROFF_CONT;          return ROFF_CONT;
 }  }
   

Legend:
Removed from v.1.328  
changed lines
  Added in v.1.330

CVSweb