Re: Precisions on the forth SWIG architecture: return by value structs
Bernd Paysan <[email protected]> Tue, 13 Jun 2023 01:32:08 +0200
| Newsgroups | gmane.comp.lang.forth.gforth |
|---|---|
| Message-ID | <10611422.aFP6jjVeTY@liubei> |
Am Dienstag, 13. Juni 2023, 00:17:14 CEST schrieb Bernd Paysan:
> Structs as arguments are already dealt with by a{*(type*)} (the argument-
> generating code would be then identical for a, but with struct as name).
The Swig module from Gerald does handle this part already fine, i.e. it
converts structs as parameters into the a{*(type*)} sequence.
> There, the cast includes the pointer-accessing *, it's just structs as
> return are not yet supported by libcc.fs.
And the Swig module just emits a "… -- struct" in that case, though without
the necessary typecast information (which is not yet supported by libcc.fs,
either).
--
Bernd Paysan
"If you want it done right, you have to do it yourself"
net2o id: kQusJzA;7*?t=uy@X}1GWr!+0qqp_Cn176t4(dQ*
https://net2o.de/
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEERJ1NDqPQRwYnwBjr9y2Uk5MtoGcFAmSHqvgACgkQ9y2Uk5Mt oGe7BA//doMWPWs8mcx8G/9wueCMVMS30wsUOGED8HZp5leii6jQaK5ivsyfBPXZ 97tjgLJI8JclM2P0V7c/sY6i5kAWOwzSKDL3LksD9fuEIbZJPF2ZL1YO1zjRyAmF gOD2qTqX2ArTXT2HEOncaLbB9ZWifWpJLKyTCQveRhvyysdy+yjEkMQQ+vXqueeq Cgv2gU02t9gYjX9Y9RpJGABNIXUA6H71fZC1hj/ydBLgDeLEiz+7z4MY+cSCrIGL j7g1trFknZIVJiYAkS31BEFRQNqTQvpQfWmHAeL4YZShhTnUQFI0nD4R1GRs0fFZ m7TepblKwY/iuMfkCaXNroGXyGZT4z3O7ZkWQJYAYWBxjI8n3Nh1TvaxYXTzuBvE 9fWXd99L1M0kB7nIA8tTenRexjCceBC60gf+SadTm9HHtZ1wKvi3aQvHtqnt0eOl RMb3ZRpvMRy03smeYcSmQ9kc2Ezgez0vld3SPc4cJy0rqfthVBtJ4IGPNS/qHg71 uwzPbXWN8a5sBGV8eCIbUe/jnguGSvZtp+JodiwDTk8cAXi/CaZtY3fF/AL6V7CB 9kPK8A1+xpd4RGCt+UAequh18SYLxKQEj0M1F7EhqHCIZG1Bz5qwZke6BNa3rnAR At3Up0oMM9HB1wPJ/7XsvBhOz0qLccfC+CQ83JO9WLMnvFn4W4g= =Oyn0 -----END PGP SIGNATURE-----