From: Victor Stinner Date: Thu, 5 Nov 2015 10:21:38 +0000 (+0100) Subject: sysmodule.c: reuse Py_STRINGIFY() macro X-Git-Tag: v3.6.0a1~1121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf01b68b889f637c6fb3f11029df3a96b840333d;p=python sysmodule.c: reuse Py_STRINGIFY() macro --- diff --git a/Python/sysmodule.c b/Python/sysmodule.c index 334f5d0c8e..e0aa233ca9 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