[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gforth] forth-swig question

From: Reepca Russelstein
Subject: [gforth] forth-swig question
Date: Sat, 6 Oct 2018 23:41:48 -0500

I've noticed that the forth-swig output doesn't really do what the
swig documentation says it does, specifically turning
pass-struct-by-value functions into pass-by-reference ones
( There's an example
of how to do exactly this with casts in the part of the gforth manual
about libcc, and casts that look just like that are already generated
for callbacks that take structs. So why aren't they being generated
for c-functions? Wrappers are failing to compile because it's just
assuming that a struct being passed to a C function is a single cell,
even as it's fully aware that it can't assume that about structs being
passed *from* C.

Where could I read about the specifics of the work on forth-swig
(aside from "read the source" - I am unfamiliar with the internals of

reply via email to

[Prev in Thread] Current Thread [Next in Thread]