You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
506 B

  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. #include "Python.h"
  5. #include "../Objects/stringlib/unicodedefs.h"
  6. #define FORMAT_STRING _PyUnicode_FormatAdvanced
  7. #define FORMAT_LONG _PyLong_FormatAdvanced
  8. #define FORMAT_FLOAT _PyFloat_FormatAdvanced
  9. #define FORMAT_COMPLEX _PyComplex_FormatAdvanced
  10. #include "../Objects/stringlib/formatter.h"