Csound Csound-dev Csound-tekno Search About

[Cs-dev] [ csound-Bugs-2817817 ] reserved identifier violation

Date2010-02-24 14:44
From"SourceForge.net"
Subject[Cs-dev] [ csound-Bugs-2817817 ] reserved identifier violation
Bugs item #2817817, was opened at 2009-07-07 08:58
Message generated for change (Comment added) made by elfring
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2817817&group_id=81968

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: csound5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Markus Elfring (elfring)
Assigned to: John ffitch (jpff)
Summary: reserved identifier violation

Initial Comment:
I suggest to try the search pattern "_+[A-Z]+" on the source files. You will find a couple of places where names begin with an underscore and an uppercase letter.

Examples:
- _GUID
  http://csound.cvs.sourceforge.net/viewvc/csound/csound5/H/pvfileio.h?view=markup&revision=1.14

- __Brass_h
  http://csound.cvs.sourceforge.net/viewvc/csound/csound5/Opcodes/brass.h?view=markup&revision=1.7

This does not fit to the expected naming conventions of the C language standard.
http://en.wikipedia.org/wiki/Reserved_identifier

See also section "7.1.3 Reserved identifiers".
http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1124.pdf

----------------------------------------------------------------------

>Comment By: Markus Elfring (elfring)
Date: 2010-02-24 15:44

Message:
I can read the referenced PDF without problems.

How do you think about the following information sources?
-
http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier

- http://bytes.com/topic/c/answers/171648-leading-underscore

- http://www.gnu.org/s/libc/manual/html_node/Reserved-Names.html

-
https://www.securecoding.cert.org/confluence/display/seccode/DCL37-C.+Do+not+use+identifiers+that+are+reserved+for+the+implementation

----------------------------------------------------------------------

Comment By: John ffitch (jpff)
Date: 2010-02-24 14:35

Message:
The PDF file did not render and the wikipedia URL did not say anything
about C conventions
Not come across ISO/IEC 9899:TC2

and where was it discussed?

----------------------------------------------------------------------

Comment By: Markus Elfring (elfring)
Date: 2010-02-24 10:50

Message:
Which details are not readable in the referenced draft of the standard
"ISO/IEC 9899:TC2"?

(By the way: This issue was discussed in various forums already.)

----------------------------------------------------------------------

Comment By: John ffitch (jpff)
Date: 2010-02-24 07:34

Message:
I cannot find anything about this in the references you give.  Can you
suggest a readable one?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=564599&aid=2817817&group_id=81968

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net