Eric Smith | 8c66326 | 2007-08-25 02:26:07 +0000 | [diff] [blame] | 1 | /* implements the unicode (as opposed to string) version of the |
| 2 | built-in formatters for string, int, float. that is, the versions |
| 3 | of int.__float__, etc., that take and return unicode objects */ |
| 4 | |
| 5 | #include "Python.h" |
Eric Smith | 8c66326 | 2007-08-25 02:26:07 +0000 | [diff] [blame] | 6 | #include "../Objects/stringlib/unicodedefs.h" |
| 7 | |
Eric Smith | 4a7d76d | 2008-05-30 18:10:19 +0000 | [diff] [blame] | 8 | |
Eric Smith | 58a4224 | 2009-04-30 01:00:33 +0000 | [diff] [blame] | 9 | #define FORMAT_STRING _PyUnicode_FormatAdvanced |
| 10 | #define FORMAT_LONG _PyLong_FormatAdvanced |
| 11 | #define FORMAT_FLOAT _PyFloat_FormatAdvanced |
| 12 | #define FORMAT_COMPLEX _PyComplex_FormatAdvanced |
Eric Smith | 4a7d76d | 2008-05-30 18:10:19 +0000 | [diff] [blame] | 13 | |
Eric Smith | 8c66326 | 2007-08-25 02:26:07 +0000 | [diff] [blame] | 14 | #include "../Objects/stringlib/formatter.h" |