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

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


http://hg.python.org/cpython/rev/f35514dfadf8
changeset:   72994:f35514dfadf8
branch:      2.7
parent:      72991:649ac338203f
user:        Senthil Kumaran <senthil at uthcode.com>
date:        Thu Oct 20 02:13:23 2011 +0800
summary:
  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
@@ -2744,7 +2744,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