Commit graph

33 commits

Author SHA1 Message Date
Virgil
47c3638dce feat(cgo): add 17-argument Call wrappers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:45:06 +00:00
Virgil
47a652fcfe feat(cgo): support pointer args in Call
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:43:46 +00:00
Virgil
03203d866b docs(core-go-cgo): clarify close cleanup usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:42:40 +00:00
Virgil
0aeba0a5db fix(scope): disable cgo finalizers after manual cleanup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:41:21 +00:00
Virgil
446a02fad9 feat(scope): add buffer close helper for lifecycle symmetry
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:40:03 +00:00
Virgil
eb0494fddf chore(ax): align exported cgo comments with usage examples
- Update exported API comments to concrete usage examples for Buffer, Scope, and C conversion helpers.
- Emphasize concrete call patterns in Call/Errno/CString/SizeT docs per AX principles.

Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:38:58 +00:00
Virgil
1f5056d1aa feat(scope): panic on double-free scope teardown
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:37:55 +00:00
Virgil
64b4003bb4 fix(cgo): support byte slices in Call argument conversion
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:37:01 +00:00
Virgil
375d522b1a feat(cgo): add byte-slice support to Call arguments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:35:58 +00:00
Virgil
7588b3d1de feat(cgo): allocate buffer from C heap
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:34:48 +00:00
Virgil
665456c7e7 feat(call): support numeric C alias args in Call conversion
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:33:57 +00:00
Virgil
9f267f4c05 feat(cgo): normalize Errno for negative return codes
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:32:35 +00:00
Virgil
f19b691112 feat(core): make Buffer.IsFreed nil-safe
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:31:31 +00:00
Virgil
65d3825cad feat(cgo): support common C integer types in Call
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:30:32 +00:00
Virgil
d3e2f7da1e docs(cgo): add agent-oriented package usage examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:29:17 +00:00
Virgil
e3a90fd781 feat(scope): add GC finalizer cleanup for buffers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:28:24 +00:00
Virgil
0d92d53190 docs: align exported API comments with AX examples
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:27:25 +00:00
Virgil
2fa77a2fe3 feat(scope): add close-compatible scoped cleanup
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:26:08 +00:00
Virgil
9bc20fda95 feat(scope): expose scope cleanup state
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:25:03 +00:00
Virgil
b5e288510f feat(cgo): extend Call for up to 16 arguments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:23:56 +00:00
Virgil
a03afffa36 feat(cgo): add variadic call support beyond eight args
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:22:28 +00:00
Virgil
08729f9396 feat(cgo): extend Call for up to eight arguments
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:21:28 +00:00
Virgil
f835712e16 feat(cgo): support *Buffer as Call argument
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:20:32 +00:00
Virgil
f14915e645 feat(cgo): map Call non-zero returns to errno
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:19:11 +00:00
Virgil
42d6b0441e feat(cgo): validate Int conversion against C.int width
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:18:15 +00:00
Virgil
c95429fbbd feat(cgo): support six-argument Call invocations
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:17:16 +00:00
Virgil
215d838fa7 feat(cgo): implement errno mapping helpers
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:16:22 +00:00
Virgil
14ed08b7f9 feat(cgo): add cgo call wrapper
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:15:01 +00:00
Virgil
2e910e91ef feat(scope): add scoped allocation lifecycle API
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:13:21 +00:00
Virgil
a16e4b9a26 feat(cgo): add RFC string conversion utilities
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:12:25 +00:00
Virgil
530bfd55f9 feat(buffer): implement RFC buffer lifecycle with safety checks
Co-Authored-By: Virgil <virgil@lethean.io>
2026-04-03 19:11:30 +00:00
Virgil
7b75f95ee7 docs: add RFC specs for agent reference 2026-04-03 20:09:13 +01:00
Virgil
bcb5a04787 feat: initial commit 2026-04-03 20:07:30 +01:00