restricted c header imports
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user