[Issue 24291] ImportC: cannot compile janet.c
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Dec 25 14:20:56 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=24291
anonymous4 <dfj1esp02 at sneakemail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |https://forum.dlang.org/pos
| |t/woaixickqgqvfsazutex at foru
| |m.dlang.org
--- Comment #2 from anonymous4 <dfj1esp02 at sneakemail.com> ---
>From forum discussion:
---
One Problem with Janet is that it uses computed gotos which is a
gcc extension
The code it complains about looks like:
```C
/* opcode -> label lookup if using clang/GCC */
#ifdef JANET_USE_COMPUTED_GOTOS
static void *op_lookup[255] = {
&&label_JOP_NOOP,
&&label_JOP_ERROR,
```
As you can see &&label is not valid C11.
Which is what the import C parser complains about.
---
Maybe something can be done there with that JANET_USE_COMPUTED_GOTOS define.
--
More information about the Digitalmars-d-bugs
mailing list