Commit bb12a7ff8df1582a2cb0583bc463a84f5a736219
1 parent
b8fd18ae
Tweak comment in QPDFParser refactor
Showing
2 changed files
with
6 additions
and
1 deletions
ChangeLog
| 1 | +2023-12-21 Jay Berkenbilt <ejb@ql.org> | ||
| 2 | + | ||
| 3 | + * From M. Holger: Refactor QPDFParser for performance. See #1059 | ||
| 4 | + for a discussion. | ||
| 5 | + | ||
| 1 | 2023-12-20 Jay Berkenbilt <ejb@ql.org> | 6 | 2023-12-20 Jay Berkenbilt <ejb@ql.org> |
| 2 | 7 | ||
| 3 | * Update code and tests so that qpdf's test suite no longer | 8 | * Update code and tests so that qpdf's test suite no longer |
libqpdf/qpdf/QPDFParser.hh
| @@ -32,7 +32,7 @@ class QPDFParser | @@ -32,7 +32,7 @@ class QPDFParser | ||
| 32 | 32 | ||
| 33 | private: | 33 | private: |
| 34 | // Parser state. Note: | 34 | // Parser state. Note: |
| 35 | - // state < st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value) | 35 | + // state <= st_dictionary_value == (state = st_dictionary_key || state = st_dictionary_value) |
| 36 | enum parser_state_e { st_dictionary_key, st_dictionary_value, st_array }; | 36 | enum parser_state_e { st_dictionary_key, st_dictionary_value, st_array }; |
| 37 | 37 | ||
| 38 | struct StackFrame | 38 | struct StackFrame |