[Python-checkins] cpython (3.2): 3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in

senthil.kumaran python-checkins at python.org
Wed Oct 19 20:17:16 CEST 2011


http://hg.python.org/cpython/rev/ab028084f704
changeset:   72995:ab028084f704
branch:      3.2
parent:      72992:12f3e86e9041
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Thu Oct 20 02:15:36 2011 +0800
summary:
  3.2 - Fix Issue 12604 - Use a proper no-op macro expansion for VTRACE macro in _sre.c

files:
  Modules/_sre.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/_sre.c b/Modules/_sre.c
--- a/Modules/_sre.c
+++ b/Modules/_sre.c
@@ -2760,7 +2760,7 @@
 #if defined(VVERBOSE)
 #define VTRACE(v) printf v
 #else
-#define VTRACE(v)
+#define VTRACE(v) do {} while(0)  /* do nothing */
 #endif
 
 /* Report failure */

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list