[Devel] [ openser-Feature Requests-1682422 ] Improve const-correctness

SourceForge.net noreply at sourceforge.net
Fri Mar 16 21:51:15 CET 2007


Feature Requests item #1682422, was opened at 2007-03-16 21:51
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1682422&group_id=139143

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: core
Group: ver devel
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Markus Elfring (elfring)
Assigned to: Nobody/Anonymous (nobody)
Summary: Improve const-correctness

Initial Comment:
Would you like to apply the advices from the article "http://en.wikipedia.org/wiki/Const-correctness" to more places in your sources?
I suggest to add the key word "const" to the type specifiers for parameters like the following.
- http://openser.svn.sourceforge.net/viewvc/openser/trunk/error.h?revision=1605&view=markup
  signature (function "err2reason_phrase")
  char const* error_text(int const code);

- http://openser.svn.sourceforge.net/viewvc/openser/trunk/dprint.h?revision=248&view=markup
  format (function "dprint")

- http://openser.svn.sourceforge.net/viewvc/openser/trunk/blacklists.h?revision=1554&view=markup
  name (functions "create_bl_head", "get_bl_head_by_name")

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

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=743023&aid=1682422&group_id=139143



More information about the Devel mailing list