Changeset 13597

Show
Ignore:
Timestamp:
01/25/08 22:53:07 (4 months ago)
Author:
warmerdam
Message:

Add support for # style comments (#2176)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/gdal/frmts/pds/nasakeywordhandler.cpp

    r13300 r13597  
    304304        } 
    305305 
     306        // Skip # style comments  
     307        if( *pszHeaderNext == '#'  ) 
     308        { 
     309            pszHeaderNext += 1; 
     310 
     311            // consume till end of line. 
     312            while( *pszHeaderNext != '\0'  
     313                   && *pszHeaderNext != 10 
     314                   && *pszHeaderNext != 13 ) 
     315            { 
     316                pszHeaderNext++; 
     317            } 
     318            continue; 
     319        } 
     320 
    306321        // not white space, return.  
    307322        return;