From: Alan W. I. <ai...@us...> - 2001-12-29 21:14:39
|
Update of /cvsroot/plplot/plplot/bindings/python In directory usw-pr-cvs1:/tmp/cvs-serv530/bindings/python Modified Files: plmodule.c plmodule.h plmodule2.c Log Message: Return to design where plmodule2.c is included into plmodule.c rather existing as an independent file that is compiled separately. Remove prototypes for pl_cont and pl_shade from plmodule.h since no other wrapper functions are prototyped this way. *Important Change* Make these functions static (which they have never been before) in plmodule2.c. The examples in the python embedding documentation use static for the function definitions. Apparently, this is required because changing to static for pl_cont solves the infamous xw09.py segfault bug. Note this is not a completely consistent story since there was no segfault trouble before for xw16.py which uses pl_shade. However, now that I have changed pl_shade to static, xw16.py still works so I believe this static fix is the correct thing to do. |