home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: sparky!uunet!spool.mu.edu!umn.edu!csus.edu!netcom.com!pdh
- From: pdh@netcom.com (Phil Howard )
- Subject: Re: Function definition style
- Message-ID: <1992Dec31.195531.11001@netcom.com>
- Organization: Netcom - Online Communication Services (408 241-9760 guest)
- References: <1992Dec30.223045.29467@news2.cis.umn.edu> <1992Dec31.141035.24200@mksol.dseg.ti.com>
- Date: Thu, 31 Dec 1992 19:55:31 GMT
- Lines: 27
-
- mccall@mksol.dseg.ti.com (fred j mccall 575-3539) writes:
-
- >I just like the way the old declarations LOOK -- it's nice and
- >consistent with every other variable declaration in the way that it
- >declares the parameters. However, because ANSI has decreed (for what
- >seem good and sufficient reasons, but I still don't like it) that the
- >'classic' declarations will not type-check the parameters even if
- >there is a prototype somewhere which is visible, I try to force myself
- >to use the new-style declarations when the compiler will support them.
-
- I like certain aspects about the old style, but I need to use the new
- semantics, so I have adopted a layout style like the following:
-
-
- unsigned long my_function(
- struct tree_node * this_one ,
- unsigned long pattern ,
- int how_many
- )
- {
- /* local declarations and code goes here */
- }
- --
- /************************************************************************\
- | Phil Howard, pdh@netcom.com, KA9WGN Spell protection? "1(911)A1" |
- | "It's not broken... it's just functionally challenged" --Phil and Pete |
- \************************************************************************/
-