Closed choleraehyq closed 3 years ago
https://github.com/microsoft/mimalloc/blob/master/src/bitmap.inc.c this file. command: c4go transpile -s -clang-flag="-Iinclude" -o=src/bitmap.inc.go src/bitmap.inc.c error:
AST error #0: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a004a1d8 <col:10, col:112> '_Bool'` */ AST error #1: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a004a5c8 <col:10, col:65> 'uintptr_t':'unsigned long'` */ AST error #2: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a004a9b0 <col:10, col:82> 'uintptr_t':'unsigned long'` */ AST error #3: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a004aca0 <col:10, col:82> 'uintptr_t':'unsigned long'` */ AST error #4: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a004b090 <col:10, col:55> 'void'` */ AST error #5: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043630 '_Atomic(uint_least8_t)'` */ AST error #6: /* AST Error : unknown node type: `AtomicType 0x7fd1a00436f0 '_Atomic(int_least16_t)'` */ AST error #7: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043330 '_Atomic(uint_least16_t)'` */ AST error #8: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043830 '_Atomic(int_least32_t)'` */ AST error #9: /* AST Error : unknown node type: `AtomicType 0x7fd1a00433f0 '_Atomic(uint_least32_t)'` */ AST error #10: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043970 '_Atomic(int_least64_t)'` */ AST error #11: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043a30 '_Atomic(uint_least64_t)'` */ AST error #12: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043af0 '_Atomic(int_fast8_t)'` */ AST error #13: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043bb0 '_Atomic(uint_fast8_t)'` */ AST error #14: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043c70 '_Atomic(int_fast16_t)'` */ AST error #15: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043d30 '_Atomic(uint_fast16_t)'` */ AST error #16: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043df0 '_Atomic(int_fast32_t)'` */ AST error #17: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042ad0 '_Atomic(_Bool)'` */ AST error #18: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042b80 '_Atomic(char)'` */ AST error #19: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042c30 '_Atomic(signed char)'` */ AST error #20: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042ce0 '_Atomic(unsigned char)'` */ AST error #21: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042d90 '_Atomic(short)'` */ AST error #22: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042e40 '_Atomic(unsigned short)'` */ AST error #23: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042ef0 '_Atomic(int)'` */ AST error #24: /* AST Error : unknown node type: `AtomicType 0x7fd1a0042fa0 '_Atomic(unsigned int)'` */ AST error #25: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043050 '_Atomic(long)'` */ AST error #26: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043100 '_Atomic(unsigned long)'` */ AST error #27: /* AST Error : unknown node type: `AtomicType 0x7fd1a00431b0 '_Atomic(long long)'` */ AST error #28: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043260 '_Atomic(unsigned long long)'` */ AST error #29: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043330 '_Atomic(uint_least16_t)'` */ AST error #30: /* AST Error : unknown node type: `AtomicType 0x7fd1a00433f0 '_Atomic(uint_least32_t)'` */ AST error #31: /* AST Error : unknown node type: `AtomicType 0x7fd1a00434b0 '_Atomic(wchar_t)'` */ AST error #32: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043570 '_Atomic(int_least8_t)'` */ AST error #33: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043eb0 '_Atomic(uint_fast32_t)'` */ AST error #34: /* AST Error : unknown node type: `AtomicType 0x7fd1a0043f70 '_Atomic(int_fast64_t)'` */ AST error #35: /* AST Error : unknown node type: `AtomicType 0x7fd1a0044030 '_Atomic(uint_fast64_t)'` */ AST error #36: /* AST Error : unknown node type: `AtomicType 0x7fd1a00440f0 '_Atomic(intptr_t)'` */ AST error #37: /* AST Error : unknown node type: `AtomicType 0x7fd1a00441b0 '_Atomic(uintptr_t)'` */ AST error #38: /* AST Error : unknown node type: `AtomicType 0x7fd1a0044250 '_Atomic(size_t)'` */ AST error #39: /* AST Error : unknown node type: `AtomicType 0x7fd1a0044310 '_Atomic(ptrdiff_t)'` */ AST error #40: /* AST Error : unknown node type: `AtomicType 0x7fd1a00443d0 '_Atomic(intmax_t)'` */ AST error #41: /* AST Error : unknown node type: `AtomicType 0x7fd1a0044490 '_Atomic(uintmax_t)'` */ AST error #42: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a0048c90 <line:188:3, col:82> 'int64_t':'long long'` */ AST error #43: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a0048fd8 <col:10, col:61> 'uintptr_t':'unsigned long'` */ AST error #44: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a00493c8 <col:10, col:59> 'uintptr_t':'unsigned long'` */ AST error #45: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a0049800 <col:10, col:58> 'uintptr_t':'unsigned long'` */ AST error #46: /* AST Error : unknown node type: `AtomicExpr 0x7fd1a0049d00 <col:10, col:110> '_Bool'` */ AST error #47: /* AST Error : unknown node type: `AtomicType 0x7fd1a00441b0 '_Atomic(uintptr_t)'` */ AST error #48: /* AST Error : unknown node type: `AtomicType 0x7fd1a00441b0 '_Atomic(uintptr_t)'` */
Hello, Feel free for creating PR for example https://github.com/Konstantin8105/c4go/pull/475/files Typically that errors is not change the result Go code.
This is not bug. C4GO work withthat error
https://github.com/microsoft/mimalloc/blob/master/src/bitmap.inc.c this file. command: c4go transpile -s -clang-flag="-Iinclude" -o=src/bitmap.inc.go src/bitmap.inc.c error: