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

Refactor mark chains. #224

Merged
merged 3 commits into from
Jan 18, 2024
Merged

Refactor mark chains. #224

merged 3 commits into from
Jan 18, 2024

Conversation

mity
Copy link
Owner

@mity mity commented Jan 18, 2024

  • Rename MD_MARKCHAIN to MD_MARKSTACK to indicate its semantics much clearer.
  • Simplify its implementation (single-linked list instead of double-linked one).
  • Where it was reused (misused?) for other, unrelated stuff, with other semantics, it's now done explicitly. (i.e. got rid of TABLECELLBOUNDARIES).
  • PTR_CHAIN still uses the stack (we don't care about order there), but it got separated from the array of ordinary opener stacks at least.

Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (23b1416) 94.74% compared to head (f34c0cc) 94.77%.
Report is 2 commits behind head on master.

Files Patch % Lines
src/md4c.c 99.21% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #224      +/-   ##
==========================================
+ Coverage   94.74%   94.77%   +0.03%     
==========================================
  Files           3        3              
  Lines        3141     3141              
==========================================
+ Hits         2976     2977       +1     
+ Misses        165      164       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

* Rename MD_MARKCHAIN to MD_MARKSTACK to indicate its semantics much
  clearer.
* Simplify its implementation (single-linked list instead of
  double-linked one).
* Where it was reused (misused?) for other, unrelated stuff, with other
  semantics, it's now done explicitly. (i.e. got rid of
  TABLECELLBOUNDARIES).
* PTR_CHAIN still uses the stack (we don't care about order there), but
  it got separated from the array of ordinary opener stacks at least.
@mity mity merged commit 246e105 into master Jan 18, 2024
12 checks passed
@mity mity deleted the refactor_chains branch January 18, 2024 16:22
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

1 participant