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

Sequester Hyper StateNode #39

Merged
merged 1 commit into from
Dec 28, 2023
Merged

Conversation

GabrielDosReis
Copy link
Owner

Move StateNode to hyper/lex.c as the only place where it is referenced.

Rename StateNode to IOState. It is not a node.

Introduce IOStateManager as a RAII type for reliable save/restore mechanism. Remove save_scanner_state() and restore_scanner_state()

Introduce IOStateStack as a non-intrusive stack datatype based on C++ standard std::stack.

Also save line_number which was forgotten as part of the IO state to save.

Move `StateNode` to `hyper/lex.c` as the only place where it is referenced.

Rename `StateNode` to `IOState`.  It is not a node.

Introduce `IOStateManager` as a RAII type for reliable save/restore mechanism.  Remove `save_scanner_state()` and `restore_scanner_state()`

Introduce `IOStateStack` as a non-intrusive stack datatype based on C++ standard `std::stack`.

Also save `line_number` which was forgotten as part of the IO state to save.
@GabrielDosReis GabrielDosReis merged commit 17fba52 into master Dec 28, 2023
1 check passed
@GabrielDosReis GabrielDosReis deleted the gdr/hyper-sequester-StateNode branch December 28, 2023 06:24
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.

1 participant