Lines Matching +full:m +full:- +full:mode
1 # -*- coding: utf-8; mode: python -*-
7 Replacement for the sphinx c-domain.
15 declarations in the nitpicky mode. See Sphinx documentation for
19 ref-name of a function can be modified. E.g.::
24 The func-name (e.g. ioctl) remains in the output but the ref-name changed
30 * Handle signatures of function-like macros well. Don't try to deduce
31 arguments types of function-like macros.
56 # - Store the namespace if ".. c:namespace::" tag is found
68 # Handle c:macro for function-style declaration
76 # backward-compatibility with Sphinx < 3.0
85 # backward-compatibility with Sphinx < 3.0
99 # Parse Sphinx 3.x C markups, replacing them by backward-compatible ones
114 matches = sorted(chain(*match_iterators), key=lambda m: m.start())
115 for m in matches:
116 n = n[:m.start()] + markup_func[m.re](m) + n[m.end():]
129 app.connect('source-read', c_markups)
148 u"""Handles signatures of function-like macros.
151 function-like macro, the name of the macro is returned. Otherwise
159 m = c_funcptr_sig_re.match(sig)
160 if m is None:
161 m = c_sig_re.match(sig)
162 if m is None:
165 rettype, fullname, arglist, _const = m.groups()
177 # This is a function-like macro, its arguments are typeless!
184 # separate by non-breaking space in the output