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

Diff for /mandoc/mdoc_argv.c between version 1.12 and 1.13

version 1.12, 2009/07/11 20:47:52 version 1.13, 2009/07/15 15:26:19
Line 390  mdoc_args(struct mdoc *m, int line, 
Line 390  mdoc_args(struct mdoc *m, int line, 
   
   
 static int  static int
 args(struct mdoc *m, int line,  args(struct mdoc *m, int line, int *pos,
                 int *pos, char *buf, int fl, char **v)                  char *buf, int fl, char **v)
 {  {
         int               i;          int               i;
         char             *p, *pp;          char             *p, *pp;
Line 499  args(struct mdoc *m, int line, 
Line 499  args(struct mdoc *m, int line, 
   
                         if (p && 0 == *p)                          if (p && 0 == *p)
                                 if ( ! mdoc_pwarn(m, line, *pos, ECOLEMPTY))                                  if ( ! mdoc_pwarn(m, line, *pos, ECOLEMPTY))
                                         return(0);                                          return(ARGS_ERROR);
                         if (p && 0 == *p && p > *v && ' ' == *(p - 1))                          if (p && 0 == *p && p > *v && ' ' == *(p - 1))
                                 if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))                                  if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))
                                         return(0);                                          return(ARGS_ERROR);
   
                         if (p)                          if (p)
                                 return(ARGS_PHRASE);                                  return(ARGS_PHRASE);
Line 514  args(struct mdoc *m, int line, 
Line 514  args(struct mdoc *m, int line, 
   
                         if (p > *v && ' ' == *(p - 1))                          if (p > *v && ' ' == *(p - 1))
                                 if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))                                  if ( ! mdoc_pwarn(m, line, *pos, ETAILWS))
                                         return(0);                                          return(ARGS_ERROR);
                         *pos += (int)(p - *v);                          *pos += (int)(p - *v);
   
                         return(ARGS_PHRASE);                          return(ARGS_PHRASE);

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

CVSweb