mescc: Mes C Library: Prepare for M2-Planet: __assert_fail.
Rewrite C-constructs not supported by M2-Planet, such as foo ? bar : baz; -> if (foo) bar; else baz; static char foo[1024] -> __func_buf = malloc (1024); ... char *foo = __func_buf; *foo -> foo[0] foo++ -> foo = foo + 1 TODO: pointer arithmetic foo += 1; -> foo = foo + 1 for (int foo = ; -> int foo; for (foo= if (foo) -> if (foo != 0) if (!foo) -> if (foo == 0) ; -> 0; * lib/mes/__assert_fail.c: Rewrite C-constructs not supported by M2-Planet.
This commit is contained in:
parent
6a96134eba
commit
0ca159041d
|
@ -28,5 +28,5 @@ __assert_fail (char *s)
|
|||
eputs ("\n");
|
||||
char *fail = s;
|
||||
fail = 0;
|
||||
*fail = 0;
|
||||
fail[0] = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue