blob: e6a4d4baf5366a78ad1b41bf6f671fb17f5d6f64 [file] [log] [blame]
Eric Smitha9f7d622008-02-17 19:46:49 +00001/***********************************************************************/
2/* Implements the string (as opposed to unicode) version of the
3 built-in formatters for string, int, float. That is, the versions
4 of int.__float__, etc., that take and return string objects */
5
6#include "Python.h"
Eric Smitha9f7d622008-02-17 19:46:49 +00007#include "../Objects/stringlib/stringdefs.h"
8
Eric Smith9139cc62009-04-30 00:58:58 +00009#define FORMAT_STRING _PyBytes_FormatAdvanced
10#define FORMAT_LONG _PyLong_FormatAdvanced
11#define FORMAT_INT _PyInt_FormatAdvanced
12#define FORMAT_FLOAT _PyFloat_FormatAdvanced
13#define FORMAT_COMPLEX _PyComplex_FormatAdvanced
Eric Smithdc13b792008-05-30 18:10:04 +000014
Eric Smitha9f7d622008-02-17 19:46:49 +000015#include "../Objects/stringlib/formatter.h"