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

Diff for /mandoc/Attic/argv.c between version 1.20 and 1.21

version 1.20, 2009/01/20 13:44:05 version 1.21, 2009/01/20 13:49:36
Line 70  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
Line 70  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
                         if ( ! mdoc_iscdelim(buf[i]))                          if ( ! mdoc_iscdelim(buf[i]))
                                 break;                                  break;
                         i++;                          i++;
                         if (0 == buf[i] || ! isspace(buf[i]))                          if (0 == buf[i] || ! isspace((int)buf[i]))
                                 break;                                  break;
                         i++;                          i++;
                         while (buf[i] && isspace(buf[i]))                          while (buf[i] && isspace((int)buf[i]))
                                 i++;                                  i++;
                 }                  }
                 if (0 == buf[i]) {                  if (0 == buf[i]) {
Line 107  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
Line 107  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
                         }                          }
                 else {                  else {
                         while (buf[*pos]) {                          while (buf[*pos]) {
                                 if (isspace(buf[*pos]))                                  if (isspace((int)buf[*pos]))
                                         if ('\\' != buf[*pos - 1])                                          if ('\\' != buf[*pos - 1])
                                                 break;                                                  break;
                                 (*pos)++;                                  (*pos)++;
Line 123  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
Line 123  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
                         return(ARGS_WORD);                          return(ARGS_WORD);
   
                 if ( ! (ARGS_TABSEP & fl))                  if ( ! (ARGS_TABSEP & fl))
                         while (buf[*pos] && isspace(buf[*pos]))                          while (buf[*pos] && isspace((int)buf[*pos]))
                                 (*pos)++;                                  (*pos)++;
   
                 if (buf[*pos])                  if (buf[*pos])
Line 155  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
Line 155  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
         if (0 == buf[*pos])          if (0 == buf[*pos])
                 return(ARGS_QWORD);                  return(ARGS_QWORD);
   
         while (buf[*pos] && isspace(buf[*pos]))          while (buf[*pos] && isspace((int)buf[*pos]))
                 (*pos)++;                  (*pos)++;
   
         if (buf[*pos])          if (buf[*pos])
Line 452  mdoc_argv(struct mdoc *mdoc, int line, int tok,
Line 452  mdoc_argv(struct mdoc *mdoc, int line, int tok,
         if (0 == buf[*pos])          if (0 == buf[*pos])
                 return(ARGV_EOLN);                  return(ARGV_EOLN);
   
         assert( ! isspace(buf[*pos]));          assert( ! isspace((int)buf[*pos]));
   
         if ('-' != buf[*pos])          if ('-' != buf[*pos])
                 return(ARGV_WORD);                  return(ARGV_WORD);
Line 465  mdoc_argv(struct mdoc *mdoc, int line, int tok,
Line 465  mdoc_argv(struct mdoc *mdoc, int line, int tok,
   
         assert(*pos > 0);          assert(*pos > 0);
         while (buf[*pos]) {          while (buf[*pos]) {
                 if (isspace(buf[*pos]))                  if (isspace((int)buf[*pos]))
                         if ('\\' != buf[*pos - 1])                          if ('\\' != buf[*pos - 1])
                                 break;                                  break;
                 (*pos)++;                  (*pos)++;
Line 480  mdoc_argv(struct mdoc *mdoc, int line, int tok,
Line 480  mdoc_argv(struct mdoc *mdoc, int line, int tok,
                 return(ARGV_WORD);                  return(ARGV_WORD);
         }          }
   
         while (buf[*pos] && isspace(buf[*pos]))          while (buf[*pos] && isspace((int)buf[*pos]))
                 (*pos)++;                  (*pos)++;
   
         /* FIXME: whitespace if no value. */          /* FIXME: whitespace if no value. */

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

CVSweb