[BACK]Return to mandoc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / mandoc

Diff for /src/usr.bin/mandoc/mandoc.c between version 1.34 and 1.35

version 1.34, 2012/05/28 22:45:33 version 1.35, 2012/07/07 18:27:36
Line 597 
Line 597 
 }  }
   
 /*  /*
  * Find out whether a line is a macro line or not.  If it is, adjust the  
  * current position and return one; if it isn't, return zero and don't  
  * change the current position.  
  */  
 int  
 mandoc_getcontrol(const char *cp, int *ppos)  
 {  
         int             pos;  
   
         pos = *ppos;  
   
         if ('\\' == cp[pos] && '.' == cp[pos + 1])  
                 pos += 2;  
         else if ('.' == cp[pos] || '\'' == cp[pos])  
                 pos++;  
         else  
                 return(0);  
   
         while (' ' == cp[pos] || '\t' == cp[pos])  
                 pos++;  
   
         *ppos = pos;  
         return(1);  
 }  
   
 /*  
  * Convert a string to a long that may not be <0.   * Convert a string to a long that may not be <0.
  * If the string is invalid, or is less than 0, return -1.   * If the string is invalid, or is less than 0, return -1.
  */   */

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35