blob: 5cf5bad65ddc12df11edccd9b0b117f89b9da945 [file] [log] [blame]
Eric Smitha9f7d622008-02-17 19:46:49 +00001/* Implements the unicode (as opposed to string) version of the
2 built-in formatter for unicode. That is, unicode.__format__(). */
3
4#include "Python.h"
Benjamin Peterson78821dd2009-01-25 17:15:10 +00005
6#ifdef Py_USING_UNICODE
7
Eric Smitha9f7d622008-02-17 19:46:49 +00008#include "../Objects/stringlib/unicodedefs.h"
9
Eric Smithdc13b792008-05-30 18:10:04 +000010#define FORMAT_STRING _PyUnicode_FormatAdvanced
11
Eric Smitha9f7d622008-02-17 19:46:49 +000012/* don't define FORMAT_LONG and FORMAT_FLOAT, since we can live
13 with only the string versions of those. The builtin format()
14 will convert them to unicode. */
Eric Smithdc13b792008-05-30 18:10:04 +000015
Eric Smitha9f7d622008-02-17 19:46:49 +000016#include "../Objects/stringlib/formatter.h"
Benjamin Peterson78821dd2009-01-25 17:15:10 +000017
18#endif