Jonathan Leffler

Results 11 comments of Jonathan Leffler

Do you know of software that can generate railroad diagrams from BNF notation? I don't, and I've no plans to develop any such software. I'll take a look at the...

I agree with Khem — and I expect GCC would agree with us. The local variable len is assigned the value of slen, but then is not used elsewhere in...

Thanks for the feedback. Multi-line comments inside /* … */ are already squished by default with an option to preserve the newlines (which is important to me). Reducing consecutive single...

QQ: In the example code, the desired output has one blank line where there was originally a blank line, 5 comment lines, and another blank line. Should the output simply...

You might only need to activate the POSIX symbols with -D_POSIX_SOURCE= or -D_XOPEN_SOURCE=800. Jonathan Leffler ***@***.***> #include Guardian of DBD::Informix - v2018.1031 - http://dbi.perl.org "Blessed are we who can laugh...

For the overwriting problem, you might want to look at GCC bug 106757. I reported that for GCC 12.2 (as in, the C compiler, gcc, rather than the C++ compiler,...

That need not be a problem if each function has the outline: int saved = errno; errno = 0; … if (errno == 0) errno = saved; return …; That...

ISO 9075 (aka SQL) mandates a space where ISO 8601 expects a T. Both are standards. Both are correct. They simply different. Note that ISO 8601 allows parties to agree...

Thanks for the heads up. Jonathan Leffler ***@***.***> #include Guardian of DBD::Informix - v2018.1031 - http://dbi.perl.org "Blessed are we who can laugh at ourselves, for we shall never cease to...

I've just pushed commit bd69de4 to GitHub to add the missing header. On Sun, Jan 26, 2025 at 8:16 AM USSX-Hares ***@***.***> wrote: > gcc -O3 -g -I../../inc -std=c18 -Wall...