summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.config.rst
diff options
context:
space:
mode:
Diffstat (limited to 'doc/source/reference/c-api.config.rst')
-rw-r--r--doc/source/reference/c-api.config.rst52
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/source/reference/c-api.config.rst b/doc/source/reference/c-api.config.rst
index 972a78596..17d7f557d 100644
--- a/doc/source/reference/c-api.config.rst
+++ b/doc/source/reference/c-api.config.rst
@@ -19,42 +19,42 @@ avoid namespace pollution.
Data type sizes
---------------
-The :cdata:`NPY_SIZEOF_{CTYPE}` constants are defined so that sizeof
+The :c:data:`NPY_SIZEOF_{CTYPE}` constants are defined so that sizeof
information is available to the pre-processor.
-.. cvar:: NPY_SIZEOF_SHORT
+.. c:var:: NPY_SIZEOF_SHORT
sizeof(short)
-.. cvar:: NPY_SIZEOF_INT
+.. c:var:: NPY_SIZEOF_INT
sizeof(int)
-.. cvar:: NPY_SIZEOF_LONG
+.. c:var:: NPY_SIZEOF_LONG
sizeof(long)
-.. cvar:: NPY_SIZEOF_LONGLONG
+.. c:var:: NPY_SIZEOF_LONGLONG
sizeof(longlong) where longlong is defined appropriately on the
platform.
-.. cvar:: NPY_SIZEOF_PY_LONG_LONG
+.. c:var:: NPY_SIZEOF_PY_LONG_LONG
-.. cvar:: NPY_SIZEOF_FLOAT
+.. c:var:: NPY_SIZEOF_FLOAT
sizeof(float)
-.. cvar:: NPY_SIZEOF_DOUBLE
+.. c:var:: NPY_SIZEOF_DOUBLE
sizeof(double)
-.. cvar:: NPY_SIZEOF_LONG_DOUBLE
+.. c:var:: NPY_SIZEOF_LONG_DOUBLE
sizeof(longdouble) (A macro defines **NPY_SIZEOF_LONGDOUBLE** as well.)
-.. cvar:: NPY_SIZEOF_PY_INTPTR_T
+.. c:var:: NPY_SIZEOF_PY_INTPTR_T
Size of a pointer on this platform (sizeof(void \*)) (A macro defines
NPY_SIZEOF_INTP as well.)
@@ -63,15 +63,15 @@ information is available to the pre-processor.
Platform information
--------------------
-.. cvar:: NPY_CPU_X86
-.. cvar:: NPY_CPU_AMD64
-.. cvar:: NPY_CPU_IA64
-.. cvar:: NPY_CPU_PPC
-.. cvar:: NPY_CPU_PPC64
-.. cvar:: NPY_CPU_SPARC
-.. cvar:: NPY_CPU_SPARC64
-.. cvar:: NPY_CPU_S390
-.. cvar:: NPY_CPU_PARISC
+.. c:var:: NPY_CPU_X86
+.. c:var:: NPY_CPU_AMD64
+.. c:var:: NPY_CPU_IA64
+.. c:var:: NPY_CPU_PPC
+.. c:var:: NPY_CPU_PPC64
+.. c:var:: NPY_CPU_SPARC
+.. c:var:: NPY_CPU_SPARC64
+.. c:var:: NPY_CPU_S390
+.. c:var:: NPY_CPU_PARISC
.. versionadded:: 1.3.0
@@ -80,24 +80,24 @@ Platform information
Defined in ``numpy/npy_cpu.h``
-.. cvar:: NPY_LITTLE_ENDIAN
+.. c:var:: NPY_LITTLE_ENDIAN
-.. cvar:: NPY_BIG_ENDIAN
+.. c:var:: NPY_BIG_ENDIAN
-.. cvar:: NPY_BYTE_ORDER
+.. c:var:: NPY_BYTE_ORDER
.. versionadded:: 1.3.0
Portable alternatives to the ``endian.h`` macros of GNU Libc.
- If big endian, :cdata:`NPY_BYTE_ORDER` == :cdata:`NPY_BIG_ENDIAN`, and
+ If big endian, :c:data:`NPY_BYTE_ORDER` == :c:data:`NPY_BIG_ENDIAN`, and
similarly for little endian architectures.
Defined in ``numpy/npy_endian.h``.
-.. cfunction:: PyArray_GetEndianness()
+.. c:function:: PyArray_GetEndianness()
.. versionadded:: 1.3.0
Returns the endianness of the current platform.
- One of :cdata:`NPY_CPU_BIG`, :cdata:`NPY_CPU_LITTLE`,
- or :cdata:`NPY_CPU_UNKNOWN_ENDIAN`.
+ One of :c:data:`NPY_CPU_BIG`, :c:data:`NPY_CPU_LITTLE`,
+ or :c:data:`NPY_CPU_UNKNOWN_ENDIAN`.