diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-11-05 10:21:38 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-11-05 10:21:38 (GMT) |
commit | cf01b68b889f637c6fb3f11029df3a96b840333d (patch) | |
tree | b9e26659efea6505fd2a54d022bbc4ced551c287 /Python/sysmodule.c | |
parent | cf156bc248086f1b912a99c4e4fb3b4801a62275 (diff) | |
download | cpython-cf01b68b889f637c6fb3f11029df3a96b840333d.zip cpython-cf01b68b889f637c6fb3f11029df3a96b840333d.tar.gz cpython-cf01b68b889f637c6fb3f11029df3a96b840333d.tar.bz2 |
sysmodule.c: reuse Py_STRINGIFY() macro
Diffstat (limited to 'Python/sysmodule.c')
-rw-r--r-- | Python/sysmodule.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 334f5d0..e0aa233 100644 --- a/Python/sysmodule.c +++ b/Python/sysmodule.c @@ -1643,15 +1643,11 @@ make_version_info(void) /* sys.implementation values */ #define NAME "cpython" const char *_PySys_ImplName = NAME; -#define QUOTE(arg) #arg -#define STRIFY(name) QUOTE(name) -#define MAJOR STRIFY(PY_MAJOR_VERSION) -#define MINOR STRIFY(PY_MINOR_VERSION) +#define MAJOR Py_STRINGIFY(PY_MAJOR_VERSION) +#define MINOR Py_STRINGIFY(PY_MINOR_VERSION) #define TAG NAME "-" MAJOR MINOR const char *_PySys_ImplCacheTag = TAG; #undef NAME -#undef QUOTE -#undef STRIFY #undef MAJOR #undef MINOR #undef TAG |