diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2020-12-03 10:46:16 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-03 10:46:16 (GMT) |
commit | 2ad93821a69e6efac3b0efe1d205d6e5ef030791 (patch) | |
tree | 1f13d7f20f919864be2571adaa8a2e13daff4609 /Include/internal | |
parent | f3c3ea91a76526edff928c95b9c6767e077b7448 (diff) | |
download | cpython-2ad93821a69e6efac3b0efe1d205d6e5ef030791.zip cpython-2ad93821a69e6efac3b0efe1d205d6e5ef030791.tar.gz cpython-2ad93821a69e6efac3b0efe1d205d6e5ef030791.tar.bz2 |
bpo-42431: Fix outdated bytes comments (GH-23458)
Also move definitions of internal macros F_LJUST etc to private header.
Diffstat (limited to 'Include/internal')
-rw-r--r-- | Include/internal/pycore_format.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Include/internal/pycore_format.h b/Include/internal/pycore_format.h new file mode 100644 index 0000000..1b8d575 --- /dev/null +++ b/Include/internal/pycore_format.h @@ -0,0 +1,27 @@ +#ifndef Py_INTERNAL_FORMAT_H +#define Py_INTERNAL_FORMAT_H +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef Py_BUILD_CORE +# error "this header requires Py_BUILD_CORE define" +#endif + +/* Format codes + * F_LJUST '-' + * F_SIGN '+' + * F_BLANK ' ' + * F_ALT '#' + * F_ZERO '0' + */ +#define F_LJUST (1<<0) +#define F_SIGN (1<<1) +#define F_BLANK (1<<2) +#define F_ALT (1<<3) +#define F_ZERO (1<<4) + +#ifdef __cplusplus +} +#endif +#endif /* !Py_INTERNAL_FORMAT_H */ |