Created
March 22, 2017 08:39
-
-
Save Interfere/51921055089ab4e4f49b1b20849bfc3f to your computer and use it in GitHub Desktop.
End of file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case 0: | |
// If this is a random nul character in the middle | |
// of a buffer, skip it as whitespace. | |
if (CurPtr-1 != BufferEnd) { | |
diagnoseEmbeddedNul(Diags, CurPtr-1); | |
goto Restart; | |
} | |
// Otherwise, this is the real end of the buffer. | |
// Put CurPtr back into buffer bounds. | |
CurPtr--; | |
// Return EOF. | |
return formToken(tok::eof, TokStart); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment