aboutsummaryrefslogtreecommitdiff
path: root/include/cps/StringHandler.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-07-26 12:07:51 +0000
committer_ov4 <ov4@ov4.org>2026-07-26 12:07:51 +0000
commit4a25b279d8f6c662fa8152cfe42e038d1ea06901 (patch)
tree58223f2db133a10827e0a6d0c18c33f04bbc2527 /include/cps/StringHandler.h
parentefc86b5c7625cf4c7074319f42f68807a25bde9d (diff)
refactor: keep pseudocode signatures, single call-marshalling path
emitPrototype now records each FUNCTION/PROCEDURE's pseudocode signature (FuncSig: return type + per-param type/BYREF flag). CodeGen:: marshalCallArgs replaces the two verbatim-duplicated marshalling blocks and dispatches on the declared signature instead of inferring BYREF from pointer-typed LLVM params: BYVAL STRING params now receive the string data pointer (no more runtime garbage), and BYVAL args are coerced to the declared type (INTEGER->REAL args no longer emit invalid IR). Top-level prototypes are pre-registered in compile(), so calls may precede definitions; GenerateCall no longer fabricates i64 externs for unknown names - an unregistered callee is a compile error. OUTPUT reports an error when it cannot infer the expression type instead of printing with the INTEGER format. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/StringHandler.h')
0 files changed, 0 insertions, 0 deletions