[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and ab
From: |
Vincent Lefevre |
Subject: |
Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above). |
Date: |
Fri, 7 Aug 2020 22:01:17 +0200 |
User-agent: |
Mutt/1.14.5+76 (bb407ec3) vl-127292 (2020-06-24) |
On 2020-08-06 18:50:33 -0700, Paul Eggert wrote:
> For what it's worth, I count 13 instances of 'int main (void) { ... }' in
> Gnulib code, and 136 instances of 'int main () { ... }'. As I recall, the
> latter is for C++ compatibility, which I guess is not an issue with MPFR.
I don't understand what you mean. The program
int main(void)
{
return 0;
}
compiles fine with g++, even using "-std=c++17 -pedantic".
Note also that when testing MPFR, we also test it with g++.
MPFR has also been tested with MSVC.
As many test programs of MPFR use "int main(void)", if there were
an issue with this, I assume that this would have been detected.
--
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., (continued)
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Eric Blake, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/05
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/06
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above).,
Vincent Lefevre <=
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Paul Eggert, 2020/08/07
- Re: [PATCH] AC_LANG_INT_SAVE: Modernize function declarators (C89 and above)., Vincent Lefevre, 2020/08/07