ó rgdSc@sddZddlmZddlmZeZdZdefd„ƒYZigd„Z d„Z d S( sò sphinx.ext.oldcmarkup ~~~~~~~~~~~~~~~~~~~~~ Extension for compatibility with old C markup (directives and roles). :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS. :license: BSD, see LICENSE for details. iÿÿÿÿ(t directives(t Directives…using old C markup; please migrate to new-style markup (e.g. c:function instead of cfunction), see http://sphinx-doc.org/domains.htmlt OldCDirectivecBsCeZeZdZdZeZiejd6ej d6Z d„Z RS(iitnoindextmodulec Cs°|jjjj}|jjsI|jjjt d|j ƒt |j_nd|j d}|j d|ƒd}|||j|j|j|j |j|j|j|jƒ jƒS(Ntlinesc:it directivei(tstatetdocumenttsettingstenvtappt_oldcmarkup_warnedt state_machinetreportertwarningt WARNING_MSGtlinenotTruetnametlookup_domain_elementt argumentstoptionstcontenttcontent_offsett block_texttrun(tselfR tnewnametnewdir((s?/usr/local/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pyR s ( t__name__t __module__Rt has_contenttrequired_argumentstoptional_argumentstfinal_argument_whitespaceRtflagt unchangedt option_specR(((s?/usr/local/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pyRs  c Cs•|jjj}|s$|jj}n|jjsU|jjt d|ƒt |j_nd|d}|j d|ƒd} | |||||||ƒS(NRsc:itrolei( RR R tconfigt default_roleR R RRRRR( ttyptrawtextttextRtinlinerRRR tnewtyptnewrole((s?/usr/local/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pyt old_crole,s cCs­t|_|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒ|jdtƒdS(Nt cfunctiontcmembertcmacrotctypetcvartcdatatcfunc(tFalseR t add_directiveRtadd_roleR0(R ((s?/usr/local/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pytsetup8s N( t__doc__tdocutils.parsers.rstRtsphinx.util.compatRR8t_warned_oldcmarkupRRR0R;(((s?/usr/local/lib/python2.7/site-packages/sphinx/ext/oldcmarkup.pyt s