[ctypes-commit] ctypes/sandbox/tools/codegen codegenerator.py,1.30,1.31
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2005-01-21 19:50:48
|
Update of /cvsroot/ctypes/ctypes/sandbox/tools/codegen In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5267 Modified Files: codegenerator.py Log Message: Todo list. Index: codegenerator.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/sandbox/tools/codegen/codegenerator.py,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** codegenerator.py 21 Jan 2005 16:33:44 -0000 1.30 --- codegenerator.py 21 Jan 2005 19:50:33 -0000 1.31 *************** *** 2,5 **** --- 2,16 ---- # Type descriptions are collections of typedesc instances. + # Problems: + # + # SDL.h somewhere contains #define main SDL_main + # + # SDL_main is known to be a Function, but cannot be found in the dll + # (probably because it is in the static library SDLmain.lib). + # So, SDL_main cannot be generated because of the unknown dll. + # + # Hm, should self.generate() return whether code was actually generated, + # or would it be better to have a namespace of generated names? + import typedesc, sys *************** *** 232,236 **** if alias in self.done: return ! if alias.typ is not None: # we can reslove it self.generate(alias.typ) print >> self.stream, "%s = %s # alias" % (alias.name, alias.alias) --- 243,247 ---- if alias in self.done: return ! if alias.typ is not None: # we can resolve it self.generate(alias.typ) print >> self.stream, "%s = %s # alias" % (alias.name, alias.alias) |