|
From: David B. <dav...@us...> - 2004-11-22 03:53:22
|
Update of /cvsroot/frontierkernel/Frontier/Common/source In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28115/Common/source Modified Files: langpython.c langverbs.c shell.c Log Message: Initial checkin of Sidewinder code. Moved contents of sidewinder.[ch] into langpython.[ch], removing previous Python implementation. Added Python.framework to the XCode project. Added resource definitions for the python kernel verbs, currently Mac only and not #ifdef'd. Need to add Windows resource definitions. Index: shell.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/shell.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** shell.c 1 Nov 2004 11:50:16 -0000 1.4 --- shell.c 22 Nov 2004 03:52:56 -0000 1.5 *************** *** 78,81 **** --- 78,83 ---- #include "WinSockNetEvents.h" + #include "langpython.h" + #ifdef flcomponent #include <uisharing.h> *************** *** 1321,1324 **** --- 1323,1328 ---- #endif + + pythoninitverbs(); if (keyboardescape ()) /*check again before landinit; after this, must do shellquit*/ Index: langverbs.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langverbs.c,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** langverbs.c 9 Nov 2004 20:33:06 -0000 1.5 --- langverbs.c 22 Nov 2004 03:52:56 -0000 1.6 *************** *** 3717,3722 **** } ! case pythondoscriptfunc: ! return (langrunpythonscript (hparam1, v)); --- 3717,3722 ---- } ! //case pythondoscriptfunc: ! // return (langrunpythonscript (hparam1, v)); Index: langpython.c =================================================================== RCS file: /cvsroot/frontierkernel/Frontier/Common/source/langpython.c,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** langpython.c 23 Oct 2004 22:29:38 -0000 1.2 --- langpython.c 22 Nov 2004 03:52:56 -0000 1.3 *************** *** 27,37 **** #include "standard.h" ! #define xxxFRONTIER_PYTHON 1 ! ! #ifdef FRONTIER_PYTHON ! ! #include "C:\\Python16\\include\\Python.h" ! ! #endif [...1241 lines suppressed...] ! ! case stopinterpreterfunc: ! return stopInterpreter(); ! ! case runstringfunc: ! return runstringverb(hp1, v); ! ! default: ! getstringlist (langerrorlist, unimplementedverberror, bserror); ! return (false); ! } /*switch*/ ! } /*htmlfunctionvalue*/ ! ! ! boolean pythoninitverbs (void) { ! return (loadfunctionprocessor (idpythonverbs, &pythonfunctionvalue)); ! } #endif |