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 |
Mark Dickinson | b42dab5 | 2009-10-27 17:31:26 +0000 | [diff] [blame^] | 12 | #ifndef WITHOUT_COMPLEX |
Eric Smith | 58a4224 | 2009-04-30 01:00:33 +0000 | [diff] [blame] | 13 | #define FORMAT_COMPLEX _PyComplex_FormatAdvanced |
Mark Dickinson | b42dab5 | 2009-10-27 17:31:26 +0000 | [diff] [blame^] | 14 | #endif |
Eric Smith | 4a7d76d | 2008-05-30 18:10:19 +0000 | [diff] [blame] | 15 | |
Eric Smith | 8c66326 | 2007-08-25 02:26:07 +0000 | [diff] [blame] | 16 | #include "../Objects/stringlib/formatter.h" |