1 --- src/application/pythonscript.cpp.orig 2004-11-28 14:35:24.000000000 +0100
2 +++ src/application/pythonscript.cpp 2008-08-03 17:12:45.000000000 +0200
4 if ( !(py_traceback=cStringIO->cgetvalue(catch_stderr)) )
5 throw ApplicationError("unable to get traceback","PythonScript::run()");
10 if (PyString_AsStringAndSize(py_traceback, &traceback, &length))
11 throw ApplicationError("unable to convert traceback to char*","PythonScript::run()");
13 error << prefix() << "A python error occured. See traceback below." << endl;
14 error << prefix(false) << "Python traceback: ";
15 - for (int i=0;i<length-1;i++) {
16 + for (Py_ssize_t i=0;i<length-1;i++) {
17 error << traceback[i];
18 if (traceback[i]=='\n')
19 error << prefix(false) << "Traceback: ";
20 --- src/application/idlescript.cpp.orig 2004-11-28 14:35:24.000000000 +0100
21 +++ src/application/idlescript.cpp 2008-08-03 17:13:55.000000000 +0200
23 IdleScript *instance=static_cast<IdleScript*>(arg);
25 pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it
29 void idlescript_cleanup_handler(void* arg)
30 --- src/application/incomingscript.cpp.orig 2004-11-28 14:35:24.000000000 +0100
31 +++ src/application/incomingscript.cpp 2008-08-03 17:14:36.000000000 +0200
33 IncomingScript *instance=static_cast<IncomingScript*>(arg);
35 pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it
39 void incomingscript_cleanup_handler(void* arg)
40 --- src/backend/capi.cpp.orig 2008-08-03 17:10:41.000000000 +0200
41 +++ src/backend/capi.cpp 2008-08-03 17:21:37.000000000 +0200
44 Capi *instance=static_cast<Capi*>(arg);
49 Capi::Capi (ostream& debug, unsigned short debug_level, ostream &error, unsigned short DDILength, unsigned short DDIBaseLength, vector<string> DDIStopNumbers, unsigned maxLogicalConnection, unsigned maxBDataBlocks,unsigned maxBDataLen) throw (CapiError, CapiMsgError)