This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: convert to C89 function definitions
- From: Eric Christopher <echristo at redhat dot com>
- To: Zack Weinberg <zack at codesourcery dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 17 Jun 2003 00:00:52 -0700
- Subject: Re: cpplib: convert to C89 function definitions
- Organization:
- References: <87smq9z0pi.fsf@egil.codesourcery.com>
> This patch raises a style question: In several places we now have
>
> static int foo (int, int);
> static int
> foo (int a, int b)
> { ... }
>
> Do we want to keep the separate prototype? I can make a case either
> way; having the prototypes makes life easier if another function ever
> gets inserted above foo, but it is kind of odd-looking and you have to
> change two places if you change the function signature. For now I'm
> not changing it.
I personally appreciate the separate prototypes.
-eric
--
Eric Christopher <echristo@redhat.com>