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

Diff for /mandoc/man_macro.c between version 1.7 and 1.8

version 1.7, 2009/03/25 16:07:36 version 1.8, 2009/03/26 11:16:21
Line 18 
Line 18 
  */   */
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  #include <ctype.h>
 #include <err.h> /* XXX */  
 #include <stdlib.h>  #include <stdlib.h>
 #include <stdio.h>  #include <stdio.h>
 #include <string.h>  #include <string.h>
Line 113  man_macroend(struct man *m)
Line 112  man_macroend(struct man *m)
   
 /* ARGSUSED */  /* ARGSUSED */
 static int  static int
 man_args(struct man *man, int line,  man_args(struct man *m, int line,
                 int *pos, char *buf, char **v)                  int *pos, char *buf, char **v)
 {  {
   
Line 146  man_args(struct man *man, int line, 
Line 145  man_args(struct man *man, int line, 
                 if (buf[*pos])                  if (buf[*pos])
                         return(1);                          return(1);
   
                 warnx("tail whitespace");                  if ( ! man_vwarn(m, line, *pos, "trailing spaces"))
                 return(-1);                          return(-1);
   
                   return(1);
         }          }
   
         /*          /*
Line 162  man_args(struct man *man, int line, 
Line 163  man_args(struct man *man, int line, 
                 (*pos)++;                  (*pos)++;
   
         if (0 == buf[*pos]) {          if (0 == buf[*pos]) {
                 warnx("unterminated quotation");                  if ( ! man_vwarn(m, line, *pos, "unterminated quote"))
                 return(-1);                          return(-1);
                   return(1);
         }          }
   
         buf[(*pos)++] = 0;          buf[(*pos)++] = 0;
Line 176  man_args(struct man *man, int line, 
Line 178  man_args(struct man *man, int line, 
         if (buf[*pos])          if (buf[*pos])
                 return(1);                  return(1);
   
         warnx("tail whitespace");          if ( ! man_vwarn(m, line, *pos, "trailing spaces"))
         return(-1);                  return(-1);
           return(1);
 }  }

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

CVSweb