Add error codes documentation
authorAndrea Spadaccini <spadaccio@google.com>
Thu, 6 Oct 2011 19:25:54 +0000 (20:25 +0100)
committerAndrea Spadaccini <spadaccio@google.com>
Fri, 7 Oct 2011 11:19:17 +0000 (12:19 +0100)
commit3ac3f5e42039b3b8f542c86072f75b2580bfdc87
treedcbab3b6305d95d7bbb09daf641dfec9932ea841
parent12637df59055939f1872304e7c795f5fad3f2f67
Add error codes documentation

lib/constants.py
* add to each CV_E* tuple the documentation of the error code
* add the DOCUMENTED_CONSTANTS constant for the doc preprocessor

autotools/docpp
* add a new directive class CONSTANTS_<kind>, that gets data from
  constants.DOCUMENTED_CONSTANTS

lib/cmdlib.py
* modify the code that unpacked the CV_E* tuples to ignore the
  documentation parameter

Signed-off-by: Andrea Spadaccini <spadaccio@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
autotools/docpp
lib/build/sphinx_ext.py
lib/cmdlib.py
lib/constants.py