This is the mail archive of the mailing list for the GDB project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: demangle.h and ucase enums?

> Date: Thu, 22 Mar 2001 12:28:42 -0500
> From: Andrew Cagney <>
> ``Please use underscores to separate words in a name, so that the Emacs
> word commands can be useful within them. Stick to lower case; reserve
> upper case for macros and enum constants, and for name-prefixes that
> follow a uniform convention.''
> Does anyone know how this should be interpreted?

I think you need to take a good look at Emacs sources to understand
what is meant by ``name-prefixes that follow a uniform convention'' ;-).

Emacs sources use the_lower_case_with_underscores for naming functions
and variables.  They use upper-case letters in functions and variables
which have special meaning.  For example, each primitive whose name in
Lisp is primitive-function is defined in C as Fprimitive_function, and
each variale known in Lisp as built-in-variable is defined in C as

These F and V prefixes are certainly following a uniform convention.

> I've been working on the simplistic interpretation of ``enums are in
> upper case'' but, looking at demangle.h other interpretations are
> possible.

Err... what do you see in demangle.h that is pertinent to the above
issue?  I don't see anything except that they use lower case for
enums, which AFAIK is quite a wide-spread habit, including in Emacs.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]