@@ -44,7 +44,7 @@ Python:
4444
4545.. c :type :: Py_UNICODE 
4646
47- :c:expr : `wchar_t `, which is a 16-bit type or 32-bit type
47+ :c:type : `wchar_t `, which is a 16-bit type or 32-bit type
4848   depending on the platform.
4949
5050   .. versionchanged :: 3.3 
@@ -444,11 +444,11 @@ APIs:
444444   +----------+-----------------------------------------------------+ 
445445   | ``ll``   | :c:expr:`long long` or :c:expr:`unsigned long long` | 
446446   +----------+-----------------------------------------------------+ 
447-    | ``j``    | :c:expr :`intmax_t` or :c:expr :`uintmax_t`           | 
447+    | ``j``    | :c:type :`intmax_t` or :c:type :`uintmax_t`           | 
448448   +----------+-----------------------------------------------------+ 
449-    | ``z``    | :c:expr :`size_t` or :c:expr :`ssize_t`               | 
449+    | ``z``    | :c:type :`size_t` or :c:type :`ssize_t`               | 
450450   +----------+-----------------------------------------------------+ 
451-    | ``t``    | :c:expr :`ptrdiff_t`                                 | 
451+    | ``t``    | :c:type :`ptrdiff_t`                                 | 
452452   +----------+-----------------------------------------------------+ 
453453
454454   The length modifier ``l`` for following conversions ``s`` or ``V`` specify 
@@ -527,7 +527,7 @@ APIs:
527527
528528   .. note:: 
529529      The width formatter unit is number of characters rather than bytes. 
530-       The precision formatter unit is number of bytes or :c:expr :`wchar_t` 
530+       The precision formatter unit is number of bytes or :c:type :`wchar_t` 
531531      items (if the length modifier ``l `` is used) for ``"%s"`` and 
532532      ``"%V"`` (if the ``PyObject* `` argument is ``NULL ``), and a number of 
533533      characters for ``"%A"``, ``"%U"``, ``"%S"``, ``"%R"`` and ``"%V"`` 
@@ -846,21 +846,21 @@ conversion function:
846846wchar_t Support 
847847""""""""""""""" 
848848
849- :c:expr : `wchar_t ` support for platforms which support it:
849+ :c:type : `wchar_t ` support for platforms which support it:
850850
851851.. c :function :: PyObject* PyUnicode_FromWideChar (const wchar_t *w, Py_ssize_t size)   
852852
853-    Create a Unicode object from the :c:expr : `wchar_t ` buffer *w * of the given *size *. 
853+    Create a Unicode object from the :c:type : `wchar_t ` buffer *w * of the given *size *. 
854854   Passing ``-1 `` as the *size * indicates that the function must itself compute the length, 
855855   using wcslen. 
856856   Return ``NULL `` on failure. 
857857
858858
859859.. c :function :: Py_ssize_t PyUnicode_AsWideChar (PyObject *unicode, wchar_t *w, Py_ssize_t size)   
860860
861-    Copy the Unicode object contents into the :c:expr : `wchar_t ` buffer *w *.  At most 
862-    *size * :c:expr : `wchar_t ` characters are copied (excluding a possibly trailing 
863-    null termination character).  Return the number of :c:expr :`wchar_t` characters 
861+    Copy the Unicode object contents into the :c:type : `wchar_t ` buffer *w *.  At most 
862+    *size * :c:type : `wchar_t ` characters are copied (excluding a possibly trailing 
863+    null termination character).  Return the number of :c:type :`wchar_t` characters 
864864   copied or ``-1`` in case of an error.  Note that the resulting :c:expr:`wchar_t*` 
865865   string may or may not be null-terminated.  It is the responsibility of the caller 
866866   to make sure that the :c:expr:`wchar_t*` string is null-terminated in case this is 
@@ -874,7 +874,7 @@ wchar_t Support
874874   Convert the Unicode object to a wide character string. The output string 
875875   always ends with a null character. If *size * is not ``NULL ``, write the number 
876876   of wide characters (excluding the trailing null termination character) into 
877-    *\*size*. Note that the resulting :c:expr :`wchar_t` string might contain 
877+    *\*size*. Note that the resulting :c:type :`wchar_t` string might contain 
878878   null characters, which would cause the string to be truncated when used with 
879879   most C functions. If *size* is ``NULL`` and the :c:expr:`wchar_t*` string 
880880   contains null characters a :exc:`ValueError` is raised. 
0 commit comments