]> granicus.if.org Git - python/commitdiff
Merged revisions 81049 via svnmerge from
authorAndrew M. Kuchling <amk@amk.ca>
Mon, 10 May 2010 23:14:26 +0000 (23:14 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Mon, 10 May 2010 23:14:26 +0000 (23:14 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r81049 | andrew.kuchling | 2010-05-10 13:18:25 -0400 (Mon, 10 May 2010) | 1 line

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

Modules/_cursesmodule.c

index 40b9844252e9e47c39e7ec415d27729b1ce95234..65aa01ecd02217d383476ba3c316d3f7e9e7ac0c 100644 (file)
@@ -1234,10 +1234,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, 
@@ -1403,10 +1404,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,