| Update of /cvsroot/pywin32/pywin32/win32/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12016
Modified Files:
	PyWinTypes.h odbc.cpp 
Log Message:
Move TmpPyObject into PyWinTypes.h
Index: odbc.cpp
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/odbc.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** odbc.cpp	8 Jan 2009 02:56:17 -0000	1.30
--- odbc.cpp	1 Feb 2009 17:26:47 -0000	1.31
***************
*** 846,866 ****
  }
  
- // Class to hold a temporary reference that decrements itself
- class TmpPyObject
- {
- public:
- 	PyObject *tmp;
- 	TmpPyObject() { tmp=NULL; }
- 	TmpPyObject(PyObject *ob) { tmp=ob; }
- 	PyObject * operator= (PyObject *ob){
- 		Py_XDECREF(tmp);
- 		tmp=ob;
- 		return tmp;
- 		}
- 
- 	boolean operator== (PyObject *ob) { return tmp==ob; }
- 	operator PyObject *() { return tmp; }
- 	~TmpPyObject() { Py_XDECREF(tmp); }
- };
  
  static int ibindDate(cursorObject*cur, int column, PyObject *item) 
--- 846,849 ----
Index: PyWinTypes.h
===================================================================
RCS file: /cvsroot/pywin32/pywin32/win32/src/PyWinTypes.h,v
retrieving revision 1.62
retrieving revision 1.63
diff -C2 -d -r1.62 -r1.63
*** PyWinTypes.h	26 Jan 2009 00:47:31 -0000	1.62
--- PyWinTypes.h	1 Feb 2009 17:26:47 -0000	1.63
***************
*** 919,922 ****
--- 919,940 ----
  // End of exception helper macros.
  
+ // Class to hold a temporary reference that decrements itself
+ class TmpPyObject
+ {
+ public:
+ 	PyObject *tmp;
+ 	TmpPyObject() { tmp=NULL; }
+ 	TmpPyObject(PyObject *ob) { tmp=ob; }
+ 	PyObject * operator= (PyObject *ob){
+ 		Py_XDECREF(tmp);
+ 		tmp=ob;
+ 		return tmp;
+ 		}
+ 
+ 	boolean operator== (PyObject *ob) { return tmp==ob; }
+ 	operator PyObject *() { return tmp; }
+ 	~TmpPyObject() { Py_XDECREF(tmp); }
+ };
+ 
  #endif // __PYWINTYPES_H__
  
 |