From: Zhanna Tsitkov Date: Mon, 14 Jan 2013 18:54:25 +0000 (-0500) Subject: Help Sphinx to diff C-types for better x-reference X-Git-Tag: krb5-1.12-alpha1~340 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7364136c8fb95b1fd096bd62293b3dc4367ce424;p=thirdparty%2Fkrb5.git 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. --- diff --git a/doc/tools/doxybuilder_types.py b/doc/tools/doxybuilder_types.py index 4bb6e1868f..24e0a57db3 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':