[ctypes-commit] ctypes/codegen/ctypes_codegen cparser.py,1.1,1.2
Brought to you by:
theller
From: Thomas H. <th...@us...> - 2006-06-08 19:11:48
|
Update of /cvsroot/ctypes/ctypes/codegen/ctypes_codegen In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11481 Modified Files: cparser.py Log Message: Don't create a 'None' output file when no output file is specified on the command line. Index: cparser.py =================================================================== RCS file: /cvsroot/ctypes/ctypes/codegen/ctypes_codegen/cparser.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** cparser.py 8 Jun 2006 18:46:47 -0000 1.1 --- cparser.py 8 Jun 2006 19:11:41 -0000 1.2 *************** *** 112,116 **** xmlfile, and remove the source file again.""" fname = self.create_source_file(lines) ! args = ["gccxml", fname, "-fxml=%s" % xmlfile] if self.options.flags: args.extend(self.options.flags) --- 112,118 ---- xmlfile, and remove the source file again.""" fname = self.create_source_file(lines) ! args = ["gccxml", fname] ! if xmlfile is not None: ! args.append("-fxml=%s" % xmlfile) if self.options.flags: args.extend(self.options.flags) |