[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Map C bit-field to Gambas datatype
[Thread Prev] | [Thread Next]
- Subject: Re: Map C bit-field to Gambas datatype
- From: T Lee Davidson <t.lee.davidson@xxxxxxxxx>
- Date: Thu, 14 Mar 2024 17:30:38 -0400
- To: user@xxxxxxxxxxxxxxxxxxxxxx
On 3/14/24 17:07, Benoît Minisini wrote:
So you have to check at runtime how the structure is organized in memory, and then access the bit fields with the Gambas bit manipulation function (BTst, BSet...). You must aware that this structure organisation can change if you change the library version, the compiler, the system...
Thank you for all that instruction, Benoît - even with the spelling mistakes which I didn't even notice :-)And so, Jussi, after digesting the above and trying that example with the connection parameter/argument declared as simply Pointer everywhere (result: SegFault), I am in agreement with you: Not worth it.
Oh well, on to the next candidate. -- Lee --- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ---- --- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----
Re: Map C bit-field to Gambas datatype | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
Map C bit-field to Gambas datatype | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: Map C bit-field to Gambas datatype | Jussi Lahtinen <jussi.lahtinen@xxxxxxxxx> |
Re: Map C bit-field to Gambas datatype | T Lee Davidson <t.lee.davidson@xxxxxxxxx> |
Re: Map C bit-field to Gambas datatype | Benoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx> |