[m-dev.] for review: update c_coding_guidelines.html

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Feb 9 17:49:47 AEDT 2000


On 09-Feb-2000, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> 
> >  <h3>
> > -4.2. Enums, macros and #define constants</h3>
> > +4.2. Enumeration constants, macros and #define constants</h3>
> 
> This should be just
> 
> 4.2. Enumeration constants and #define constants</h3>
> 
> since function-like macros were mentioned previously.

I will change it to

	4.2. Enumeration constants, #define constants,
	     and non-function-like macros

and change 4.1 to

	4.1. Functions, function-like macros, and variables

Note that macros like LABEL(), LVALUE_CAST(), etc.
are neither function-like macros nor #define constants.

> > +<font color="#0000ff">
> > +<pre>
> > +	typedef struct Directory_Entry_Struct {
> > +		...
> > +	} DirectoryEntry;
> > +</pre>
> > +<font color="#000000">
> 
> This, and the other examples, should be changed to have an MR_ prefix.

The need for `MR_' or `ML_' prefixes is mentioned separately
(in section 4.5).

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list