Skip to content

clean up check_sexp_syntax and improve caching - #7735

Draft
Goober5000 wants to merge 2 commits into
scp-fs2open:masterfrom
Goober5000:cleanup/sexp_syntax_checking
Draft

clean up check_sexp_syntax and improve caching#7735
Goober5000 wants to merge 2 commits into
scp-fs2open:masterfrom
Goober5000:cleanup/sexp_syntax_checking

Conversation

@Goober5000

Copy link
Copy Markdown
Contributor
  • Clean up check_sexp_syntax to use eval_ship (and incidentally eval_wing and eval_prop) rather than the old lookups.
  • Disable SEXP node caching while FRED is running. Also use smart pointers and fix a cache memory leak.

In draft as it depends on #7734

@Goober5000 Goober5000 added this to the Release 26.2 milestone Aug 23, 2026
@Goober5000 Goober5000 added cleanup A modification or rewrite of code to make it more understandable or easier to maintain. sexps A feature or issue related to SEXPs labels Aug 23, 2026
@Goober5000
Goober5000 force-pushed the cleanup/sexp_syntax_checking branch 4 times, most recently from 9e53586 to a81ba38 Compare August 24, 2026 01:41
- A parse flag to indicate when the mission is being parsed, and a new `ship_class_index()` accessor in the ship registry, both currently unused
- Make the ship registry more robust, especially in FRED: properly update it when ships are renamed or deleted
- Clean up `check_sexp_syntax` to use `eval_ship` (and incidentally `eval_wing` and `eval_prop`) rather than the old lookups.
- Disable SEXP node caching while FRED is running.  Also use smart pointers and fix a cache memory leak.
@Goober5000
Goober5000 force-pushed the cleanup/sexp_syntax_checking branch from a81ba38 to f759019 Compare August 24, 2026 02:25
@Goober5000 Goober5000 added the fix A fix for bugs, not-a-bugs, and/or regressions. label Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup A modification or rewrite of code to make it more understandable or easier to maintain. fix A fix for bugs, not-a-bugs, and/or regressions. sexps A feature or issue related to SEXPs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant