aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/tools/cython/Cython/Includes/cpython/conversion.pxd
diff options
context:
space:
mode:
authorshadchin <shadchin@yandex-team.ru>2022-02-10 16:44:30 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:44:30 +0300
commit2598ef1d0aee359b4b6d5fdd1758916d5907d04f (patch)
tree012bb94d777798f1f56ac1cec429509766d05181 /contrib/tools/cython/Cython/Includes/cpython/conversion.pxd
parent6751af0b0c1b952fede40b19b71da8025b5d8bcf (diff)
downloadydb-2598ef1d0aee359b4b6d5fdd1758916d5907d04f.tar.gz
Restoring authorship annotation for <shadchin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/tools/cython/Cython/Includes/cpython/conversion.pxd')
-rw-r--r--contrib/tools/cython/Cython/Includes/cpython/conversion.pxd72
1 files changed, 36 insertions, 36 deletions
diff --git a/contrib/tools/cython/Cython/Includes/cpython/conversion.pxd b/contrib/tools/cython/Cython/Includes/cpython/conversion.pxd
index 18e2c3d1a6..f779f52673 100644
--- a/contrib/tools/cython/Cython/Includes/cpython/conversion.pxd
+++ b/contrib/tools/cython/Cython/Includes/cpython/conversion.pxd
@@ -1,36 +1,36 @@
-# From https://docs.python.org/3/c-api/conversion.html
-
-from .object cimport PyObject
-
-cdef extern from "Python.h":
- ctypedef struct va_list
-
- int PyOS_snprintf(char *str, size_t size, const char *format, ...)
- # Output not more than size bytes to str according to the format
- # string format and the extra arguments. See the Unix man page snprintf(2).
-
- int PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
- # Output not more than size bytes to str according to the format
- # string format and the variable argument list va. Unix man page vsnprintf(2).
-
- double PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception) except? -1.0
- # Convert a string s to a double, raising a Python exception on failure. The set of
- # accepted strings corresponds to the set of strings accepted by Python’s float()
- # constructor, except that s must not have leading or trailing whitespace.
- # The conversion is independent of the current locale.
-
- enum:
- Py_DTSF_SIGN
- Py_DTSF_ADD_DOT_0
- Py_DTSF_ALT
-
- char* PyOS_double_to_string(double val, char format_code, int precision, int flags, int *ptype) except NULL
- # Convert a double val to a string using supplied format_code, precision, and flags.
-
- int PyOS_stricmp(const char *s1, const char *s2)
- # Case insensitive comparison of strings. The function works almost identically
- # to strcmp() except that it ignores the case.
-
- int PyOS_strnicmp(const char *s1, const char *s2, Py_ssize_t size)
- # Case insensitive comparison of strings. The function works almost identically
- # to strncmp() except that it ignores the case.
+# From https://docs.python.org/3/c-api/conversion.html
+
+from .object cimport PyObject
+
+cdef extern from "Python.h":
+ ctypedef struct va_list
+
+ int PyOS_snprintf(char *str, size_t size, const char *format, ...)
+ # Output not more than size bytes to str according to the format
+ # string format and the extra arguments. See the Unix man page snprintf(2).
+
+ int PyOS_vsnprintf(char *str, size_t size, const char *format, va_list va)
+ # Output not more than size bytes to str according to the format
+ # string format and the variable argument list va. Unix man page vsnprintf(2).
+
+ double PyOS_string_to_double(const char *s, char **endptr, PyObject *overflow_exception) except? -1.0
+ # Convert a string s to a double, raising a Python exception on failure. The set of
+ # accepted strings corresponds to the set of strings accepted by Python’s float()
+ # constructor, except that s must not have leading or trailing whitespace.
+ # The conversion is independent of the current locale.
+
+ enum:
+ Py_DTSF_SIGN
+ Py_DTSF_ADD_DOT_0
+ Py_DTSF_ALT
+
+ char* PyOS_double_to_string(double val, char format_code, int precision, int flags, int *ptype) except NULL
+ # Convert a double val to a string using supplied format_code, precision, and flags.
+
+ int PyOS_stricmp(const char *s1, const char *s2)
+ # Case insensitive comparison of strings. The function works almost identically
+ # to strcmp() except that it ignores the case.
+
+ int PyOS_strnicmp(const char *s1, const char *s2, Py_ssize_t size)
+ # Case insensitive comparison of strings. The function works almost identically
+ # to strncmp() except that it ignores the case.