home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!sun-barr!cs.utexas.edu!torn!utzoo!censor!isgtec!robert
- From: robert@isgtec.com (Robert Osborne)
- Newsgroups: comp.lang.c
- Subject: Re: Macros for ANSI prototypes
- Message-ID: <3085@isgtec.isgtec.com>
- Date: 13 Aug 92 16:49:39 GMT
- References: <1992Aug12.051707.17509@organpipe.uug.arizona.edu>
- Sender: news@isgtec.com
- Lines: 20
-
- dave@cs.arizona.edu (Dave Schaumann) writes:
- > In stead of obfuscating your code with macros that turn on and off
- > functio prototypes as the particular compiler requires, wouldn't it be
- > better to simply include one of the tools freely available to
- > automatically massage prototyped code into K&R acceptability.
-
- What if the code needs to be compiled simultaneously on eight
- architecutures; 4 K&R and 4 ANSI?
-
- > The ability to write clear, easily understandable code should be a primary
- > goal of every programmer. Macro-izing away prototypes for compilers that
- > can't deal with them is a poor solution to a problem that is far better
- > dealt with by a program that requires no special changes to the code.
-
- Prototype checking is a great debugging tool; I'd hate to lose it
- just because one of my architectures is K&R.
-
- Rob.
- --
- Robert A. Osborne ...!uunet.ca!isgtec!robert or robert@isgtec.com
-