Patch to make it more obvious when -l is needed
Reuben Thomas <[email protected]> Thu, 13 Jan 2011 20:07:04 +0000
| Newsgroups | gmane.comp.python.ctypes |
|---|---|
| Message-ID | <[email protected]> |
Attached, please find a patch to current SVN which adds a warning message if no functions are found by xml2py, suggesting that maybe a -l flag is needed. It only changes the diagnostic output; no logic is affected. -- http://rrt.sc3d.org ------------------------------------------------------------------------------ Protect Your Site and Customers from Malware Attacks Learn about various malware tactics and how to avoid them. Understand malware threats, the impact they can have on your business, and how you can protect your company and customers by using code signing. http://p.sf.net/sfu/oracle-sfdevnl _______________________________________________ ctypes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ctypes-users
no_functions.patch
(application/octet-stream, 710 B)
Index: ctypeslib/codegen/codegenerator.py
===================================================================
--- ctypeslib/codegen/codegenerator.py (revision 87971)
+++ ctypeslib/codegen/codegenerator.py (working copy)
@@ -813,6 +813,10 @@
print >> stream, "# unknown variables: %5d" % self._notfound_variables
print >> stream, "#"
print >> stream, "# Total symbols: %5d" % total
+ if self._functiontypes == 0:
+ print >> stream, "#"
+ print >> stream, "# No functions found: missing -l flag?"
+ print >> stream, "#"
print >> stream, "###########################"
################################################################