Commit 1891dc5
committed
Add S_parse_ident_no_copy()
The way parse_ident() is structured, it uses filling the output buffer
to determine if an identifier has too many bytes in it. It would be a
pain to restructure it to not do that. So S_parse_ident_no_copy() is
created to wrap plain parse_ident(), so that callers that don't care
about getting the output buffer don't have to deal with it.
These parsing functions are cold code; there is no need to try to eke
out every bit of performance from them.1 parent 0b61d37 commit 1891dc5
4 files changed
+27
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6103 | 6103 | | |
6104 | 6104 | | |
6105 | 6105 | | |
| 6106 | + | |
| 6107 | + | |
| 6108 | + | |
| 6109 | + | |
| 6110 | + | |
6106 | 6111 | | |
6107 | 6112 | | |
6108 | 6113 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1688 | 1688 | | |
1689 | 1689 | | |
1690 | 1690 | | |
| 1691 | + | |
1691 | 1692 | | |
1692 | 1693 | | |
1693 | 1694 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10476 | 10476 | | |
10477 | 10477 | | |
10478 | 10478 | | |
| 10479 | + | |
| 10480 | + | |
| 10481 | + | |
| 10482 | + | |
| 10483 | + | |
| 10484 | + | |
| 10485 | + | |
| 10486 | + | |
| 10487 | + | |
| 10488 | + | |
| 10489 | + | |
| 10490 | + | |
| 10491 | + | |
| 10492 | + | |
| 10493 | + | |
| 10494 | + | |
10479 | 10495 | | |
10480 | 10496 | | |
10481 | 10497 | | |
| |||
0 commit comments