From 194fa2aca06cba3b619eb346df4013c092e4cba1 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Fri, 24 Dec 1999 18:45:22 +0000 Subject: [PATCH] Some little compilation fixes, etc. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@5103 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- utils/wxPython/src/helpers.cpp | 4 ++-- utils/wxPython/src/helpers.h | 4 ++-- utils/wxPython/src/libpy.c | 2 -- utils/wxPython/src/printfw.i | 12 ++++++------ utils/wxPython/tests/.cvsignore | 3 +++ 5 files changed, 13 insertions(+), 12 deletions(-) diff --git a/utils/wxPython/src/helpers.cpp b/utils/wxPython/src/helpers.cpp index 863718df74..685a999c25 100644 --- a/utils/wxPython/src/helpers.cpp +++ b/utils/wxPython/src/helpers.cpp @@ -208,7 +208,7 @@ PyObject* __wxStart(PyObject* /* self */, PyObject* args) } bResult = PyInt_AS_LONG(result); if (! bResult) { - PyErr_SetString(PyExc_SystemExit, "OnInit returned false, exiting..."); + PyErr_SetString(PyExc_SystemExit, "OnInit returned FALSE, exiting..."); return NULL; } @@ -457,7 +457,7 @@ PyObject* wxPyCallbackHelper::callCallbackObj(PyObject* argTuple) { wxPyEvtSelfRef::wxPyEvtSelfRef() { //m_self = Py_None; // **** We don't do normal ref counting to prevent //Py_INCREF(m_self); // circular loops... - m_cloned = false; + m_cloned = FALSE; } wxPyEvtSelfRef::~wxPyEvtSelfRef() { diff --git a/utils/wxPython/src/helpers.h b/utils/wxPython/src/helpers.h index 09f05369c6..c5a58fbb23 100644 --- a/utils/wxPython/src/helpers.h +++ b/utils/wxPython/src/helpers.h @@ -313,7 +313,7 @@ public: bool doSave = wxPyRestoreThread(); \ if (m_myInst.findCallback(#CBNAME)) \ rval = m_myInst.callCallback(Py_BuildValue("(i)",a)); \ - else rval = false; \ + else rval = FALSE; \ wxPySaveThread(doSave); \ return rval; \ } @@ -741,7 +741,7 @@ public: #define IMP_PYCALLBACK_BOOL_TAG_pure(CLASS, PCLASS, CBNAME) \ bool CLASS::CBNAME(const wxHtmlTag& a) { \ - bool rval = false; \ + bool rval = FALSE; \ bool doSave = wxPyRestoreThread(); \ if (m_myInst.findCallback(#CBNAME)) \ rval = m_myInst.callCallback(Py_BuildValue("(O)", \ diff --git a/utils/wxPython/src/libpy.c b/utils/wxPython/src/libpy.c index 89a14a606a..5841d40a50 100644 --- a/utils/wxPython/src/libpy.c +++ b/utils/wxPython/src/libpy.c @@ -401,8 +401,6 @@ SWIG_GetPtrObj(PyObject *obj, void **ptr, char *type) { if (!PyString_Check(obj)) { if (!PyInstance_Check(obj) || !(sobj = PyObject_GetAttrString(obj,"this"))) return ""; -// sobj = PyObject_GetAttrString(obj,"this"); -// if (!sobj) return ""; } str = PyString_AsString(sobj); return SWIG_GetPtr(str,ptr,type); diff --git a/utils/wxPython/src/printfw.i b/utils/wxPython/src/printfw.i index b5b4c91e70..c29b3ae291 100644 --- a/utils/wxPython/src/printfw.i +++ b/utils/wxPython/src/printfw.i @@ -204,7 +204,7 @@ public: // Since this one would be tough and ugly to do with the Macros... void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *pageTo) { - bool hadErr = false; + bool hadErr = FALSE; bool doSave = wxPyRestoreThread(); if (m_myInst.findCallback("GetPageInfo")) { @@ -214,22 +214,22 @@ void wxPyPrintout::GetPageInfo(int *minPage, int *maxPage, int *pageFrom, int *p val = PyTuple_GetItem(result, 0); if (PyInt_Check(val)) *minPage = PyInt_AsLong(val); - else hadErr = true; + else hadErr = TRUE; val = PyTuple_GetItem(result, 1); if (PyInt_Check(val)) *maxPage = PyInt_AsLong(val); - else hadErr = true; + else hadErr = TRUE; val = PyTuple_GetItem(result, 2); if (PyInt_Check(val)) *pageFrom = PyInt_AsLong(val); - else hadErr = true; + else hadErr = TRUE; val = PyTuple_GetItem(result, 3); if (PyInt_Check(val)) *pageTo = PyInt_AsLong(val); - else hadErr = true; + else hadErr = TRUE; } else - hadErr = true; + hadErr = TRUE; if (hadErr) { PyErr_SetString(PyExc_TypeError, "GetPageInfo should return a tuple of 4 integers."); diff --git a/utils/wxPython/tests/.cvsignore b/utils/wxPython/tests/.cvsignore index d75b7dec7d..1bb17a3e3a 100644 --- a/utils/wxPython/tests/.cvsignore +++ b/utils/wxPython/tests/.cvsignore @@ -1,7 +1,10 @@ hh_test.py +listGetItem.pyc setup.bat +test.out test1.pyc test4.pyc test6.pyc test8.pyc +testDlg.pyc th_test.py -- 2.45.2