Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(866)

Delta Between Two Patch Sets: Include/floatobject.h

Issue 14744: Use _PyUnicodeWriter API in str.format() internals
Left Patch Set: Created 1 year ago
Right Patch Set: Created 12 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « Include/complexobject.h ('k') | Include/longobject.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 1
2 /* Float object interface */ 2 /* Float object interface */
3 3
4 /* 4 /*
5 PyFloatObject represents a (double precision) floating point number. 5 PyFloatObject represents a (double precision) floating point number.
6 */ 6 */
7 7
8 #ifndef Py_FLOATOBJECT_H 8 #ifndef Py_FLOATOBJECT_H
9 #define Py_FLOATOBJECT_H 9 #define Py_FLOATOBJECT_H
10 #ifdef __cplusplus 10 #ifdef __cplusplus
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 * to unpack a string that represents a NaN or infinity. 105 * to unpack a string that represents a NaN or infinity.
106 */ 106 */
107 PyAPI_FUNC(double) _PyFloat_Unpack4(const unsigned char *p, int le); 107 PyAPI_FUNC(double) _PyFloat_Unpack4(const unsigned char *p, int le);
108 PyAPI_FUNC(double) _PyFloat_Unpack8(const unsigned char *p, int le); 108 PyAPI_FUNC(double) _PyFloat_Unpack8(const unsigned char *p, int le);
109 109
110 /* free list api */ 110 /* free list api */
111 PyAPI_FUNC(int) PyFloat_ClearFreeList(void); 111 PyAPI_FUNC(int) PyFloat_ClearFreeList(void);
112 112
113 /* Format the object based on the format_spec, as defined in PEP 3101 113 /* Format the object based on the format_spec, as defined in PEP 3101
114 (Advanced String Formatting). */ 114 (Advanced String Formatting). */
115 PyAPI_FUNC(int) _PyFloat_FormatWriter(PyObject *obj, 115 PyAPI_FUNC(int) _PyFloat_FormatAdvancedWriter(
116 PyObject *format_spec, 116 PyObject *obj,
117 Py_ssize_t start, 117 PyObject *format_spec,
118 Py_ssize_t end, 118 Py_ssize_t start,
119 _PyUnicodeWriter *writer); 119 Py_ssize_t end,
120 _PyUnicodeWriter *writer);
120 #endif /* Py_LIMITED_API */ 121 #endif /* Py_LIMITED_API */
121 122
122 #ifdef __cplusplus 123 #ifdef __cplusplus
123 } 124 }
124 #endif 125 #endif
125 #endif /* !Py_FLOATOBJECT_H */ 126 #endif /* !Py_FLOATOBJECT_H */
LEFTRIGHT

RSS Feeds Recent Issues | This issue
This is Rietveld cbc36f91f3f7