[Python-checkins] r81049 - python/trunk/Modules/_cursesmodule.c

andrew.kuchling python-checkins at python.org
Mon May 10 19:18:25 CEST 2010


Author: andrew.kuchling
Date: Mon May 10 19:18:25 2010
New Revision: 81049

Log:
Move { out of #if...#else block; this confuses Emacs' C-mode

Modified:
   python/trunk/Modules/_cursesmodule.c

Modified: python/trunk/Modules/_cursesmodule.c
==============================================================================
--- python/trunk/Modules/_cursesmodule.c	(original)
+++ python/trunk/Modules/_cursesmodule.c	Mon May 10 19:18:25 2010
@@ -1226,10 +1226,11 @@
   int rtn;
 
 #ifndef WINDOW_HAS_FLAGS
-  if (0) {
+  if (0)
 #else
-  if (self->win->_flags & _ISPAD) {
+  if (self->win->_flags & _ISPAD)
 #endif
+    {
     switch(PyTuple_Size(args)) {
     case 6:
       if (!PyArg_ParseTuple(args, 
@@ -1368,10 +1369,11 @@
   int rtn;
   
 #ifndef WINDOW_HAS_FLAGS
-  if (0) {
+  if (0)
 #else
-  if (self->win->_flags & _ISPAD) {
+  if (self->win->_flags & _ISPAD)
 #endif
+    {
     switch(PyTuple_Size(args)) {
     case 6:
       if (!PyArg_ParseTuple(args, 


More information about the Python-checkins mailing list