summaryrefslogtreecommitdiffstats
path: root/tests/roots/test-domain-c/index.rst
blob: 4febd63eff1e4e663a58097c769c242dfad8740e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
.. c:namespace:: index

test-domain-c
=============

directives
----------

.. c:function:: int hello(const char *name)

   :rtype: int

.. c:function:: MyStruct hello2(char *name)

   :rtype: MyStruct

.. c:member:: float Sphinx.version
.. c:var:: int version

.. c:macro::  IS_SPHINX
.. c:macro::  SPHINX(arg1, arg2)

.. c:struct:: MyStruct
.. c:union:: MyUnion
.. c:enum:: MyEnum

   .. c:enumerator:: MyEnumerator

      :c:enumerator:`MyEnumerator`

   :c:enumerator:`MyEnumerator`

:c:enumerator:`MyEnumerator`

.. c:type:: Sphinx
.. c:type:: int SphinxVersionNum


.. c:struct:: A

   .. c:union:: @data

      .. c:member:: int a

- :c:member:`A.@data.a`
- :c:member:`A.a`

- :c:expr:`unsigned int`
- :c:texpr:`unsigned int`

.. c:var:: A a

- :c:expr:`a->b`
- :c:texpr:`a->b`