restricted c header imports

This commit is contained in:
2026-06-14 14:42:38 +02:00
parent 4e860b033e
commit 638ca57f5c
24 changed files with 1377 additions and 45 deletions
+4 -5
View File
@@ -1,4 +1,4 @@
# "quick"/"easy" fixes
# "quick" / "easy" fixes
- for global initialization cycles, report also starting and ending lines
@@ -29,15 +29,14 @@
- `Some :: c_struct`: opaque c-layout struct
- defer passing c structs by value until target ABI classification exists
2. restricted c header imports
2. restricted c header imports (implemented)
- treat an imported header as a synthetic, file-local package namespace
- `import "relative/path/to/header.h"`
- `other :: import "relative/path/to/header.h"`
- `native :: import "relative/path/to/header.h"`
- import functions, typedefs, scalar types, and pointers to opaque records
- keep implementation linking separate from header imports
- cache imports by canonical header path and target/include/define configuration
- diagnose unsupported declarations when referenced
- research libclang's c API behind a replaceable c importer boundary
- dynamically load libclang behind a replaceable c importer boundary
3. c variadic calls
- represent c variadics as a fixed parameter count plus a variadic flag