Prototypes local or global opinions wanted

Blair P. Houghton bhoughto at hopi.intel.com
Tue Jun 25 11:33:05 AEST 1991


In article <1991Jun24.132406.1 at acad3.alaska.edu> fxsdb at acad3.alaska.edu writes:
>In article <6592 at trantor.harris-atd.com>, mvm at caesun6.harris-atd.com
(Matt Mahoney) writes:
>> Functions are always global, so their prototypes should be global too.
>
>Functions can be declared locally with local prototypes which was, I believe,
>the focus of the question.  I much prefer global functions, as this encourages
>writing general functions which are reused throughout the code, and can easily
>be #included.

Block-scoped function definitions can import block-scoped
variables.

Very handy when hacking a decision tree into a former
straight-flow construct.

				--Blair
				  "Information hiding in the rushes."



More information about the Comp.lang.c mailing list