-
## Source C code
```c
#include
typedef struct{
int intM;
} mystruct;
mystruct test_bool(int inp){
return (mystruct){.intM = inp != 0};
}
int main(){
int b = 5;
mystruct result = …
-
## Source C code
```c
#include
union Data {
int p_p;
};
union Data data1 = { 100 };
int main() {
printf("Value at the start of main: %d\n", data1.p_p);
data1.p_p = 200;
pri…
-
## Input C code (test.c)
```c
#include
int globe = 35;
int* fn1(int strd) {
static int result;
result = globe;
if (strd > 2) {
result += 4;
}
result += …
-
There are some symbols in C's `printf`, like `%ld` that are not supported in Go. It results in Go printing something like `%!!(MISSING)`.
There should be a `noarch.Printf()`, but only used when the…
-
When there is an initializer list for an array in a struct, the transpiled program fails to compile with a type error. When an array is not in a struct, it transpiles to a slice, but when it's in a st…
-
It seems that the variadic arguments operator/node is not detected during AST parsing events and in GC source output during transpilation.
I figured I would post an issue in case others run into th…
-
for example:
```c
int i;
int x = /** some code */;
switch (x) {
case 0: for (i = 0; i < 3; i++) {
case 1: /** some code */;
case 2: /** some code */;
case 3: /** some code */; }
}
```
-
Attempting to transpile https://github.com/jcburley/LispZero/blob/master/lisp-zero.c, I get this:
```
$ c2go transpile lisp-zero.c
panic: invalid identity: 'BSstructSatSShomeScraigSgithubSLispZer…
-
## Input C code (test.c)
```c
#include
int globe = 35;
int* fn1(int strd) {
static int result;
result = globe;
if (strd > 2) {
result += 4;
}
result += st…
-
Failed to c2go on [skywind3000/kcp](https://github.com/skywind3000/kcp) ikcp.c
```
E:\github-other\kcp (master -> origin)
λ c2go transpile ikcp.c
panic: could not match regexp with string
^(?P[0-…