]> granicus.if.org Git - python/commitdiff
Move { out of #if...#else block; this confuses Emacs' C-mode
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 10 May 2010 17:18:25 +0000 (17:18 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 10 May 2010 17:18:25 +0000 (17:18 +0000)
Modules/_cursesmodule.c

index 3f95cefa8e1f176f38d9febf89742425e80d6644..0c9e84c77855930ba8cd5181aa25b5fb8345bd4f 100644 (file)
@@ -1226,10 +1226,11 @@ PyCursesWindow_NoOutRefresh(PyCursesWindowObject *self, PyObject *args)
   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 @@ PyCursesWindow_Refresh(PyCursesWindowObject *self, PyObject *args)
   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,