8 Sep 2008 15:42
Re: Python generator
Neat. The one obvious question is: how many of those 'Py' are actually needed, and how many are your choice of naming? In other words, could you rewrite that piece of Felix code for us, keeping the occurrences of 'py' [in any casing, appearing anywhere in the program] to an absolute minimum? Jacques john skaller wrote: > Here is how it goes now: > > First, I put this file in directory config: > > Macintosh:fbld johnskaller$ cat config/python.fpc > Name: Python > cflags: -I/Developer/SDKs/MacOSX10.5.sdk/System/Library/Frameworks/ > Python.framework/Versions/2.5/include/python2.5/ > includes: "Python.h" > requires_dlibs: -L/Developer/SDKs/MacOSX10.5.sdk/usr/lib/ > libpython2.5.dylib -lpython2.5 > > This is for Mac OSX 10.5, using the system Python. Next, here is the > test program: > > Macintosh:fbld johnskaller$ cat pytest.flx > requires package "Python"; > > type PyObject = "PyObject*"; > proc Py_INCREF: PyObject = "Py_INCREF($1);";(Continue reading)
RSS Feed