Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preprocessing line number handling #38

Merged
merged 2 commits into from Jul 24, 2015

Conversation

antiagainst
Copy link
Contributor

These two patches fix the line number handling in preprocessing. It's the preliminary work mentioned in Issue #37.

SourceLineSynchronizer is added for keeping track of the last
line number and output newlines appropriately if we switch to
a new line in the preprocessor.
Everytime we switch to a new source string, the line are reset.
We need to reset lastLine and also output newlines appropriately.
@antiagainst antiagainst changed the title Preprocessing line number Preprocessing line number handling Jul 23, 2015
johnkslang added a commit that referenced this pull request Jul 24, 2015
@johnkslang johnkslang merged commit b159bd5 into KhronosGroup:master Jul 24, 2015
@antiagainst antiagainst deleted the preprocessing-line-number branch July 24, 2015 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants