]> granicus.if.org Git - python/commitdiff
sysmodule.c: reuse Py_STRINGIFY() macro
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 5 Nov 2015 10:21:38 +0000 (11:21 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Thu, 5 Nov 2015 10:21:38 +0000 (11:21 +0100)
Python/sysmodule.c

index 334f5d0c8e95f0cb6e1c2cabae8c7fba3eaae869..e0aa233ca9cb94d12ea5d813a81a4bf07a58710c 100644 (file)
@@ -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