-
Notifications
You must be signed in to change notification settings - Fork 161
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
kernel: remove partial floats in scanner; fix support for identifiers of length 1023 and more #2467
Merged
Conversation
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
fingolfin
added
topic: kernel
release notes: not needed
PRs introducing changes that are wholly irrelevant to the release notes
labels
May 15, 2018
fingolfin
added
kind: bug
Issues describing general bugs, and PRs fixing them
and removed
release notes: not needed
PRs introducing changes that are wholly irrelevant to the release notes
labels
May 15, 2018
fingolfin
force-pushed
the
mh/no-partial-float
branch
from
May 15, 2018 23:26
364c4f0
to
94a3a96
Compare
Codecov Report
@@ Coverage Diff @@
## master #2467 +/- ##
==========================================
+ Coverage 74.01% 74.03% +0.01%
==========================================
Files 484 484
Lines 245371 245274 -97
==========================================
- Hits 181615 181581 -34
+ Misses 63756 63693 -63
|
The manual says that identifiers are truncated to 1023 chars, i.e., an identifier has *at most* 1023 chars. But some of our code instead restricted them to *less* than 1023 chars, i.e., the maximum was 1022. We now do what the manual has been saying since forever.
stevelinton
approved these changes
May 16, 2018
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a fantastic simplification
fingolfin
added
the
release notes: added
PRs introducing changes that have since been mentioned in the release notes
label
Sep 21, 2018
olexandr-konovalov
changed the title
kernel: remove partial floats in scanner; fix support for identifiers of length 1023; and more
kernel: remove partial floats in scanner; fix support for identifiers of length 1023 and more
Nov 1, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind: bug
Issues describing general bugs, and PRs fixing them
release notes: added
PRs introducing changes that have since been mentioned in the release notes
topic: kernel
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This finally gets rid of the remaining
S_PARTIALFLOAT*
scanner states, simplifying parsing/scanning of float literals further.It also fixes our treatment of overlong identifiers: the manual has always claimed that these are truncated at 1023 chars, but instead truncated to 1022 chars. I changed this to match the manual, as there is really no technical reason to truncate at 1022, and no serious existing code can be affected negatively by adding support for slightly longer identifiers.
While at it, I also made some other minor scanner/reader cleanups.
Fixes #1104