blob: 79cb5f919265c979ad626654d595e950c7d63d4b [file] [log] [blame]
Eric Smith8c663262007-08-25 02:26:07 +00001/* 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 Smith8c663262007-08-25 02:26:07 +00006#include "../Objects/stringlib/unicodedefs.h"
7
Eric Smith4a7d76d2008-05-30 18:10:19 +00008
Eric Smith58a42242009-04-30 01:00:33 +00009#define FORMAT_STRING _PyUnicode_FormatAdvanced
10#define FORMAT_LONG _PyLong_FormatAdvanced
11#define FORMAT_FLOAT _PyFloat_FormatAdvanced
Mark Dickinsonb42dab52009-10-27 17:31:26 +000012#ifndef WITHOUT_COMPLEX
Eric Smith58a42242009-04-30 01:00:33 +000013#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
Mark Dickinsonb42dab52009-10-27 17:31:26 +000014#endif
Eric Smith4a7d76d2008-05-30 18:10:19 +000015
Eric Smith8c663262007-08-25 02:26:07 +000016#include "../Objects/stringlib/formatter.h"