Lines Matching +full:2 +full:c
15 # Python 2 lacks re.ASCII...
26 # :c:func: block (i.e. ":c:func:`mmap()`s" flakes out), so the last
32 # Sphinx 2 uses the same :c:type role for struct, union, enum and typedef
38 # Sphinx 3 uses a different C role for each one of struct, union, enum and
52 RE_namespace = re.compile(r'^\s*..\s*c:namespace::\s*(\S+)\s*$')
55 # Reserved C words that we should skip when cross-referencing
137 # In sphinx3 we can cross-reference to C macro and function, each one with its
138 # own C role, but both match the same regex, so we try both.
141 cdom = app.env.domains['c']
143 # Go through the dance of getting an xref out of the C domain
145 base_target = match.group(2)
157 lit_text = nodes.literal(classes=['xref', 'c', 'c-func'])
159 pxref = addnodes.pending_xref('', refdomain = 'c',
182 class_str = {# Sphinx 2 only
183 RE_function: 'c-func',
184 RE_generic_type: 'c-type',
186 RE_struct: 'c-struct',
187 RE_union: 'c-union',
188 RE_enum: 'c-enum',
189 RE_typedef: 'c-type',
191 reftype_str = {# Sphinx 2 only
201 cdom = app.env.domains['c']
203 # Go through the dance of getting an xref out of the C domain
205 base_target = match.group(2)
217 lit_text = nodes.literal(classes=['xref', 'c', class_str[match.re]])
219 pxref = addnodes.pending_xref('', refdomain = 'c',
249 target = match.group(2)
291 refuri=f'https://git.kernel.org/torvalds/c/{rev}')