ApplyProtos: REPENTOGON prototypes applied only where the callee's RET n agrees (~600 functions)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
shweetandClaude Opus 5.5 committed 2026-10-24 22:22:39 -04:00
1 parent 737a867934
commit 288ea53ab4
3 files changed
+91 -1

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ apply_db() { # db names -> struct types (zhl + db fields)
G -process isaac-ng.exe -noanalysis -postScript ApplyDb.java "$D/db/names.tsv"
grep -hv '^#' "$D/zhl_fields.tsv" "$D/lua_fields.tsv" "$D/db/fields.tsv" > "$D/build_fields.tsv" # later lines win
G -process isaac-ng.exe -noanalysis -postScript ApplyTypes.java "$D/build_fields.tsv"
G -process isaac-ng.exe -noanalysis -postScript ApplyProtos.java "$D/repentogon/libzhl/functions" # only where RET n agrees
G -process isaac-ng.exe -noanalysis -postScript ApplyLocals.java "$D/db/locals.tsv" # after types: names refer to that decompile
P headers.py "$D/src/structs.hpp" "$D/zhl_fields.tsv" "$D/lua_fields.tsv" "$D/db/fields.tsv"
echo '#include "structs.hpp"' | g++ -std=c++17 -fsyntax-only -I"$D/src" -x c++ - \