Menu

#2 Improve "const correctness"

open
None
5
2007-04-24
2005-07-24
No

Would you like to apply the advices from the article
"http://en.wikipedia.org/wiki/Const_correctness" to
your sources?
I suggest to add the key word "const" to the type
specifiers for parameters like the following.
- str (functions "parse_conversion", "hex2char")

http://cvs.sourceforge.net/viewcvs.py/dcfldd/dcfldd/dcfldd.h?rev=1.7&view=markup

- pattern (functions "make_pattern", "replicate_pattern")

http://cvs.sourceforge.net/viewcvs.py/dcfldd/dcfldd/pattern.h?rev=1.3&view=markup

Discussion

  • Markus Elfring

    Markus Elfring - 2007-04-24
    • assigned_to: nobody --> harbourn
     
  • Markus Elfring

    Markus Elfring - 2007-04-24

    Logged In: YES
    user_id=572001
    Originator: YES

    How do you think about the suggested API polish?