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

Diff for /mandoc/tbl_opts.c between version 1.18 and 1.19

version 1.18, 2015/01/26 13:03:48 version 1.19, 2015/01/28 15:03:45
Line 120  arg(struct tbl_node *tbl, int ln, const char *p, int *
Line 120  arg(struct tbl_node *tbl, int ln, const char *p, int *
  * and some options are followed by arguments.   * and some options are followed by arguments.
  */   */
 void  void
 tbl_option(struct tbl_node *tbl, int ln, const char *p)  tbl_option(struct tbl_node *tbl, int ln, const char *p, int *offs)
 {  {
         int              i, pos, len;          int              i, pos, len;
   
         pos = 0;          pos = *offs;
         for (;;) {          for (;;) {
                 while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',')                  while (p[pos] == ' ' || p[pos] == '\t' || p[pos] == ',')
                         pos++;                          pos++;
   
                 if (p[pos] == ';')                  if (p[pos] == ';') {
                           *offs = pos + 1;
                         return;                          return;
                   }
   
                 /* Parse one option name. */                  /* Parse one option name. */
   

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19

CVSweb