This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] New rules for ARI
>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:
Joel> Actually, it would. But when I tried to use it in our build,
Joel> I quickly hit a problem, because the headers we include might not
Joel> have strict prototypes. For instance, readline defines:
Joel> typedef int Function ();
Joel> typedef void VFunction ();
Joel> typedef char *CPFunction ();
Joel> typedef char **CPPFunction ();
Joel> So, unless there is a way to say check strict-prototyping certain
Joel> files only, it's going to be tough to use :-(.
We can work around that by defining _FUNCTION_DEF and also including
readline/config.h. But, it is a mess :-(. For one thing, the new
standalone readline doesn't seem to install readline/config.h, and
nothing else defines PREFER_STDARG, so the distro case would be broken.
I did this as a hack though and it worked ok-ish in tree. It found some
mildly questionable TUI code and also a few more minor cases that I will
fix.
Tom