|
From: David B. <dav...@us...> - 2005-01-09 21:34:21
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15233 Modified Files: Tag: sidewinder-branch langpython.c oplangtext.c Log Message: fiddled around with python rendering code. added grab/releasethreadglobals changed frontier_internalValue and frontier_ExternalValue -- maybe I will eventually merge them into a single type, but right now they now carry a valuerecord with them to make it easy to encapsulate a custom Frontier data type within Python. This perhaps may be all we need to support those types in Python, since UserTalk manipulates them opaquely. Index: oplangtext.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/oplangtext.c,v retrieving revision 1.3.4.2 retrieving revision 1.3.4.3 diff -C2 -d -r1.3.4.2 -r1.3.4.3 *** oplangtext.c 20 Dec 2004 06:46:26 -0000 1.3.4.2 --- oplangtext.c 9 Jan 2005 21:34:09 -0000 1.3.4.3 *************** *** 364,368 **** if (signature == 'PYTH') { ! if (pythonrendercode (htext)) return (true); } --- 364,368 ---- if (signature == 'PYTH') { ! if (pythonrendercode (ho, htext)) return (true); } Index: langpython.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langpython.c,v retrieving revision 1.2.4.34 retrieving revision 1.2.4.35 diff -C2 -d -r1.2.4.34 -r1.2.4.35 *** langpython.c 20 Dec 2004 06:46:28 -0000 1.2.4.34 --- langpython.c 9 Jan 2005 21:34:08 -0000 1.2.4.35 *************** *** 576,583 **** static PyObject *newWPTextObject(void); static PyObject *newScriptObject(hdlhashtable parent, bigstring loc, tyvaluerecord *tvr); ! static PyObject *newInternalValueObject(tyvaluetype vt); ! static PyObject *newExternalValueObject(tyexternalid ei); static PyObject *newUserTalkObject(void); static time_t currentCookie = (time_t)0; static PyObject *frontierModule = NULL; --- 576,588 ---- static PyObject *newWPTextObject(void); [...1526 lines suppressed...] *************** *** 2249,2257 **** --- 2330,2346 ---- } + if (outlinedata != houtline) { + pushed = true; + oppushoutline(houtline); + } + if (!langrunscript(funcname, &val, roottable, &retval)) { + if (pushed) oppopoutline(); enablelangerror (); return false; } + if (pushed) oppopoutline(); + copyhandle(retval.data.stringvalue, htext); |