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

Diff for /mandoc/mdoc.c between version 1.160 and 1.161

version 1.160, 2010/08/07 20:33:55 version 1.161, 2010/08/07 20:57:33
Line 22 
Line 22 
 #include <sys/types.h>  #include <sys/types.h>
   
 #include <assert.h>  #include <assert.h>
 #include <ctype.h>  
 #include <stdarg.h>  #include <stdarg.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 781  mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off
Line 780  mdoc_pmacro(struct mdoc *m, int ln, char *buf, int off
          * copying when a tab, space, or eoln is encountered.           * copying when a tab, space, or eoln is encountered.
          */           */
   
         for (j = 0; j < 4; j++, i++) {          for (j = 0; j < 4; j++, i++)
                 if ('\0' == (mac[j] = buf[i]))                  if ('\0' == (mac[j] = buf[i]))
                         break;                          break;
                 else if (' ' == buf[i] || '\t' == buf[i])                  else if (' ' == buf[i] || '\t' == buf[i])
                         break;                          break;
   
                 /* Check for invalid characters. */  
                 /* TODO: remove me, already done in main.c. */  
   
                 if (isgraph((u_char)buf[i]))  
                         continue;  
                 if ( ! mdoc_pmsg(m, ln, i, MANDOCERR_BADCHAR))  
                         return(0);  
                 i--;  
         }  
   
         mac[j] = '\0';          mac[j] = '\0';
   

Legend:
Removed from v.1.160  
changed lines
  Added in v.1.161

CVSweb