On Tue, 2020-09-01 at 17:03 -0700, Ian Lance Taylor wrote:
>
> This is a bug. Sent https://golang.org/cl/252378.
>
> I think that currently cgo -godefs ignores #cgo lines. This was
> recently reported at https://golang.org/issue/41072.
>
> Ian
Thanks, Ian for both of those.
Dan
--
You
On Tue, Sep 1, 2020 at 12:10 AM 'Dan Kortschak' via golang-nuts
wrote:
>
> I am working on some C/Go interop code that includes this horror on the
> C side (TYPE_BITS is 5 and NAMED_BITS is 16):
>
> ```
> struct sxpinfo_struct {
> SEXPTYPE type : TYPE_BITS;
>
I am working on some C/Go interop code that includes this horror on the
C side (TYPE_BITS is 5 and NAMED_BITS is 16):
```
struct sxpinfo_struct {
SEXPTYPE type : TYPE_BITS;
/* ==> (FUNSXP == 99) %% 2^5 == 3 == CLOSXP
* -> warning: