diff options
| author | _ov4 <ov4@ov4.org> | 2026-10-27 14:00:16 +0000 |
|---|---|---|
| committer | _ov4 <ov4@ov4.org> | 2026-10-27 14:00:16 +0000 |
| commit | 3d7d1d7cf8685f0d9230cd89d06017869da1c6d8 (patch) | |
| tree | 3b5ea9523e94f4193eb1a28b237f41d81a2cde03 /pseudocode-lib | |
| parent | a91bd145008432fb8c5d91d94ab6f50473a277f5 (diff) | |
feat(library)!: replace #LIB with __LIB source regions
Track library mode by original source line, including deferred template bodies
and automatic object cleanup. Update call lines from ordinary code and migrate
the embedded standard library to PP_DEFINE __LIB.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'pseudocode-lib')
| -rw-r--r-- | pseudocode-lib/memory.cps | 2 | ||||
| -rw-r--r-- | pseudocode-lib/std.cps | 2 | ||||
| -rw-r--r-- | pseudocode-lib/string.cps | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/pseudocode-lib/memory.cps b/pseudocode-lib/memory.cps index 26287c3..b02ca2a 100644 --- a/pseudocode-lib/memory.cps +++ b/pseudocode-lib/memory.cps @@ -1,4 +1,4 @@ -#LIB +PP_DEFINE __LIB INCLUDE_OBJ "memory.o" TYPE _MEMORY_ADDRESS = C_TYPE("void*") TYPE _MEMORY_SIZE = C_TYPE("unsigned long long") diff --git a/pseudocode-lib/std.cps b/pseudocode-lib/std.cps index 6068bd0..6aa411b 100644 --- a/pseudocode-lib/std.cps +++ b/pseudocode-lib/std.cps @@ -1,3 +1,3 @@ -#LIB +PP_DEFINE __LIB INCLUDE "string.cps" INCLUDE "memory.cps" diff --git a/pseudocode-lib/string.cps b/pseudocode-lib/string.cps index cb06758..135f5d7 100644 --- a/pseudocode-lib/string.cps +++ b/pseudocode-lib/string.cps @@ -1,4 +1,4 @@ -#LIB +PP_DEFINE __LIB INCLUDE_OBJ "string.o" TYPE _STRING_HANDLE = C_TYPE("void*") TYPE _STRING_C_INTEGER = C_TYPE("long long") |
