3 ms·
C89 v. C99 difference IIRC edit: I was wrong: http://www.lysator.liu.se/c/ANSI-C-grammar-y.html#initializer http://www.lysator.liu.se/c/ANSI-C-grammar-y.html#i
by mzs 10y ago
C89 v. C99 difference IIRC
edit: I was wrong: http://www.lysator.liu.se/c/ANSI-C-grammar-y.html#initializer http://www.lysator.liu.se/c/ANSI-C-grammar-y.html#initialize...
- saurik 10y agoNo: tptacek did not bother paying attention to the context; as far as I know "uint8_t * data, * buffer, ;" (spaces added after * to avoid italics) would never be valid.
- tptacek 10y agoHow is that the context? In the sense of the intersection between Javascript and JSON, trailing commas have pretty much always worked in C, which is something all of us who write code that generates C rely on, like a lot.
- mzs 10y agoI googled and trailing comma was allowed since C89, I was wrong. For code that generates code I always did something like this cause of that mistake: { a, b , c ... , z };