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

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

version 1.17, 2009/01/19 17:02:58 version 1.20, 2009/01/20 13:44:05
Line 25 
Line 25 
   
 #include "private.h"  #include "private.h"
   
   /*
    * Parse arguments and parameters of macros.  Arguments follow the
    * syntax of `-arg [val [valN...]]', while parameters are free-form text
    * following arguments (if any).  This file must correctly handle the
    * strange punctuation rules dictated by groff.
    */
   
 /* FIXME: .It called with -column and quoted arguments. */  /* FIXME: .It called with -column and quoted arguments. */
   
Line 147  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
Line 153  mdoc_args(struct mdoc *mdoc, int line, int *pos, char 
   
         buf[(*pos)++] = 0;          buf[(*pos)++] = 0;
         if (0 == buf[*pos])          if (0 == buf[*pos])
                 return(ARGS_WORD);                  return(ARGS_QWORD);
   
         while (buf[*pos] && isspace(buf[*pos]))          while (buf[*pos] && isspace(buf[*pos]))
                 (*pos)++;                  (*pos)++;
   
         if (buf[*pos])          if (buf[*pos])
                 return(ARGS_WORD);                  return(ARGS_QWORD);
   
         if ( ! mdoc_pwarn(mdoc, line, *pos, WARN_COMPAT, "whitespace at end-of-line"))          if ( ! mdoc_pwarn(mdoc, line, *pos, WARN_COMPAT, "whitespace at end-of-line"))
                 return(ARGS_ERROR);                  return(ARGS_ERROR);
   
         return(ARGS_WORD);          return(ARGS_QWORD);
 }  }
   
   

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

CVSweb