krb5 commit: Help Sphinx to diff C-types for better x-reference

Zhanna A Tsitkova tsitkova at MIT.EDU
Mon Jan 14 14:04:50 EST 2013


https://github.com/krb5/krb5/commit/7364136c8fb95b1fd096bd62293b3dc4367ce424
commit 7364136c8fb95b1fd096bd62293b3dc4367ce424
Author: Zhanna Tsitkov <tsitkova at mit.edu>
Date:   Mon Jan 14 13:54:25 2013 -0500

    Help Sphinx to diff C-types for better x-reference
    
    In some cases Doxygen xml output does not provide accurate classification
    of the various C-types, thus preventing the full documentation x-referencing.
    Give some hints to the Doxy/RST bridge.

 doc/tools/doxybuilder_types.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/doc/tools/doxybuilder_types.py b/doc/tools/doxybuilder_types.py
index 4bb6e18..24e0a57 100644
--- a/doc/tools/doxybuilder_types.py
+++ b/doc/tools/doxybuilder_types.py
@@ -275,6 +275,10 @@ class DoxyTypes(object):
             elif e.getparent().tag == 'ref':
                 if e.is_tail:
                     result.append(e.strip())
+                elif e.strip().find('(') > 0:
+                    result.append(':c:func:`%s`' % e.strip())
+                elif e.isupper():
+                    result.append(':c:data:`%s`' % e.strip())
                 else:
                     result.append(':c:type:`%s`' % e.strip())
             elif e.getparent().tag == 'emphasis':


More information about the cvs-krb5 mailing list