home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / lang / c / 12308 < prev    next >
Encoding:
Internet Message Format  |  1992-08-13  |  1.2 KB

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