Subroutine layout in C

Eric S. Raymond eric at snark.UUCP
Fri Dec 30 01:14:58 AEST 1988


In <1130 at goofy.megatest.uucp>, djones at megatest.UUCP (Dave Jones) writes:
> I am starting a definitive (ahem) collection of SLMs. This has the
> distinction of being the first.

SLM = Silly Little Macro? :-) Here're two more that I use:

#define	const	/*empty*/	/* on non-ANSI compilers */
#define public	/*empty*/

This latter goes with

#define private static

I may drop `forward' though.
-- 
      Eric S. Raymond                     (the mad mastermind of TMN-Netnews)
      Email: eric at snark.uu.net                       CompuServe: [72037,2306]
      Post: 22 S. Warren Avenue, Malvern, PA 19355      Phone: (215)-296-5718



More information about the Comp.lang.c mailing list