]> git.saurik.com Git - wxWidgets.git/blobdiff - utils/wxPython/src/events.cpp
- Moved the header in the .i files out of the code that gets put into
[wxWidgets.git] / utils / wxPython / src / events.cpp
index 9ab8457fe588b379329503edce56e6ed04ac000b..87dd811e997b491948571d6d86d4e119d3b1e441 100644 (file)
@@ -53,30 +53,16 @@ extern PyObject *SWIG_newvarlink(void);
 
 #define SWIG_name    "eventsc"
 
-/////////////////////////////////////////////////////////////////////////////
-// Name:        events.i
-// Purpose:     SWIGgable Event classes for wxPython
-//
-// Author:      Robin Dunn
-//
-// Created:     5/24/98
-// RCS-ID:      $Id$
-// Copyright:   (c) 1998 by Total Control Software
-// Licence:     wxWindows license
-/////////////////////////////////////////////////////////////////////////////
-
-
 #include "helpers.h"
 
 static PyObject* l_output_helper(PyObject* target, PyObject* o) {
     PyObject*   o2;
-    PyObject*   o3;
-    if (!target) {                   
+    if (!target) {
         target = o;
-    } else if (target == Py_None) {  
+    } else if (target == Py_None) {
         Py_DECREF(Py_None);
         target = o;
-    } else {                         
+    } else {
         if (!PyList_Check(target)) {
             o2 = target;
             target = PyList_New(0);
@@ -93,23 +79,23 @@ static PyObject* t_output_helper(PyObject* target, PyObject* o) {
     PyObject*   o2;
     PyObject*   o3;
 
-    if (!target) {                   
+    if (!target) {
         target = o;
-    } else if (target == Py_None) {  
+    } else if (target == Py_None) {
         Py_DECREF(Py_None);
         target = o;
-    } else {                         
+    } else {
         if (!PyTuple_Check(target)) {
             o2 = target;
             target = PyTuple_New(1);
             PyTuple_SetItem(target, 0, o2);
         }
-        o3 = PyTuple_New(1);            
-        PyTuple_SetItem(o3, 0, o);      
+        o3 = PyTuple_New(1);
+        PyTuple_SetItem(o3, 0, o);
 
         o2 = target;
-        target = PySequence_Concat(o2, o3); 
-        Py_DECREF(o2);                      
+        target = PySequence_Concat(o2, o3);
+        Py_DECREF(o2);
         Py_DECREF(o3);
     }
     return target;