Compiler utility

Liste des Groupes 
Sujet : Compiler utility
De : NoEMail (at) *nospam* home.org (root)
Groupes : comp.os.linux.misc
Date : 07. Feb 2025, 04:19:58
Autres entêtes
Organisation : Linux Advocacy
Message-ID : <vo3u4t$37omt$1@dont-email.me>
User-Agent : slrn/1.0.2 (Linux)
The latest gcc compiler is 14.2, or something like that.
I have used prior versions 11.2 and 12.2 which allow
C code that does not always type routines, such as
int main()

Since the original compiler, it was understood that
the default for a routine is type int, so that
a compiler would accept
 
main()

and, although it might give a nuisance warning
the program would compile and run.

The latest gcc seems to require every routine
to be typed. As of the current time, I have
1,046,000 lines of C code written over the last
45 years or so, and much of it was written
according to K&R.

Does anyone know of a compiler add-on which will
read existing code, and insert type (int) when
the routine is not explicitly given?


Thanks.

Date Sujet#  Auteur
7 Feb 25 * Compiler utility16root
7 Feb 25 +* Re: Compiler utility9vallor
7 Feb 25 i+- Re: Compiler utility1rbowman
7 Feb 25 i`* Re: Compiler utility7root
7 Feb 25 i +- Re: Compiler utility1vallor
7 Feb 25 i `* Re: Compiler utility5The Natural Philosopher
7 Feb 25 i  +* Re: Compiler utility3Lew Pitcher
8 Feb 25 i  i+- Re: Compiler utility1Lawrence D'Oliveiro
8 Feb 25 i  i`- Re: Compiler utility1The Natural Philosopher
9 Feb 25 i  `- Re: Compiler utility1root
7 Feb 25 +* Re: Compiler utility2Lawrence D'Oliveiro
7 Feb 25 i`- Re: Compiler utility1WokieSux282@ud0s4.net
7 Feb 25 `* Re: Compiler utility4Richard Kettlewell
7 Feb 25  `* Re: Compiler utility3root
7 Feb 25   `* Re: Compiler utility2Richard Kettlewell
7 Feb 25    `- Re: Compiler utility1root

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal