[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.6 and 1.9

version 1.6, 2011/01/06 13:45:47 version 1.9, 2011/03/15 16:23:51
Line 72  static const struct tbl_phrase keys[KEY_MAXKEYS] = {
Line 72  static const struct tbl_phrase keys[KEY_MAXKEYS] = {
 };  };
   
 static  int              arg(struct tbl_node *, int,  static  int              arg(struct tbl_node *, int,
                                 const char *, int *, int);                                  const char *, int *, enum tbl_ident);
 static  void             opt(struct tbl_node *, int,  static  void             opt(struct tbl_node *, int,
                                 const char *, int *);                                  const char *, int *);
   
 static int  static int
 arg(struct tbl_node *tbl, int ln, const char *p, int *pos, int key)  arg(struct tbl_node *tbl, int ln, const char *p, int *pos, enum tbl_ident key)
 {  {
         int              i;          int              i;
         char             buf[KEY_MAXNUMSZ];          char             buf[KEY_MAXNUMSZ];
Line 188  again: /*
Line 188  again: /*
         /* Copy up to first non-alpha character. */          /* Copy up to first non-alpha character. */
   
         for (sv = *pos, i = 0; i < KEY_MAXNAME; i++, (*pos)++) {          for (sv = *pos, i = 0; i < KEY_MAXNAME; i++, (*pos)++) {
                 buf[i] = tolower(p[*pos]);                  buf[i] = (char)tolower((unsigned char)p[*pos]);
                 if ( ! isalpha((unsigned char)buf[i]))                  if ( ! isalpha((unsigned char)buf[i]))
                         break;                          break;
         }          }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

CVSweb