On Wed, 24 Jul 2013, Chung-Ju Wu wrote: > We removed the fancy comment formatting as you suggested. > However, for the comments like: > > /* ===================== */ > /* Title of section */ > /* ===================== */ > > /* Title of subsection 1 */ > > /* Title of subsection 2 */ > > I wish I can keep such kinds of comment formatting so that > it would be easier to distinguish the levels between sections > and subsections against the chapter 17 in GCC Internals documentation. > > Is it ok to keep such formatting? :)
You can use form-feeds (control-L characters) to separate logical sections in a source file. > > > +/* Define intrinsic register names. > > > + Please refer to nds32_intrinsic.h file, the index is corresponding to > > > + 'enum nds32_intrinsic_registers' data type values. > > > + NOTE that the base value starting from 1024. */ > > > +static const char* nds32_intrinsic_register_names[] = > > > > I suspect the array here can itself be made const. > > > > I am declaring an array in which every element is "const char *" type. > It is different to the declaration: > "static char* const nds32_intrinsic_register_names[] =" The question is whether it can be "static const char *const" - or do you need to modify the array itself at runtime (which would be unfortunate in terms of the aim to avoid global state)? -- Joseph S. Myers jos...@codesourcery.com