1.1 --- a/src/share/vm/adlc/filebuff.cpp Fri Feb 27 08:34:19 2009 -0800 1.2 +++ b/src/share/vm/adlc/filebuff.cpp Fri Feb 27 13:27:09 2009 -0800 1.3 @@ -50,10 +50,10 @@ 1.4 file_error(SEMERR, 0, "Buffer allocation failed\n"); 1.5 exit(1); // Exit on allocation failure 1.6 } 1.7 - *_bigbuf = '\n'; // Lead with a sentinal newline 1.8 - _buf = _bigbuf+1; // Skip sentinal 1.9 + *_bigbuf = '\n'; // Lead with a sentinel newline 1.10 + _buf = _bigbuf+1; // Skip sentinel 1.11 _bufmax = _buf; // Buffer is empty 1.12 - _bufeol = _bigbuf; // _bufeol points at sentinal 1.13 + _bufeol = _bigbuf; // _bufeol points at sentinel 1.14 _filepos = -1; // filepos is in sync with _bufeol 1.15 _bufoff = _offset = 0L; // Offset at file start 1.16 1.17 @@ -62,8 +62,8 @@ 1.18 file_error(SEMERR, 0, "File read error, no input read\n"); 1.19 exit(1); // Exit on read error 1.20 } 1.21 - *_bufmax = '\n'; // End with a sentinal new-line 1.22 - *(_bufmax+1) = '\0'; // Then end with a sentinal NULL 1.23 + *_bufmax = '\n'; // End with a sentinel new-line 1.24 + *(_bufmax+1) = '\0'; // Then end with a sentinel NULL 1.25 } 1.26 1.27 //------------------------------~FileBuff-------------------------------------- 1.28 @@ -81,7 +81,7 @@ 1.29 1.30 _linenum++; 1.31 retval = ++_bufeol; // return character following end of previous line 1.32 - if (*retval == '\0') return NULL; // Check for EOF sentinal 1.33 + if (*retval == '\0') return NULL; // Check for EOF sentinel 1.34 // Search for newline character which must end each line 1.35 for(_filepos++; *_bufeol != '\n'; _bufeol++) 1.36 _filepos++; // keep filepos in sync with _bufeol