Summary
Need API to box and unbox FILE* pointers as Scheme ports
Metadata
- Id: f323175d411afa95ffdb350e777ae1cab9a6b9ca
- Trac id: 960
- Type: defect
- Reporter: johnwcowan
- Owner:
- Cc: chicken-users@lists.nongnu.org
- Status: new
- Component: core libraries
- Estimated difficulty: hard
- Resolution:
- Priority: major
- Milestone: someday
- Version: 4.8.x
- Changetime: 2016-08-25 21:07:47 UTC
- Created: 2012-12-18 12:47:48 UTC
- Keywords: C, ports
Description
The C API should be able to box a FILE* as a Scheme input port or output port.
There should also be a way to extract a FILE* from a Scheme port, or NULL if the port is not file-based.
Ideally this should be done by extending the list of foreign type specifiers.