Author: Armin Rigo <[email protected]>
Branch: cpy-extension
Changeset: r308:2187b7e1643c
Date: 2012-06-13 18:00 +0200
http://bitbucket.org/cffi/cffi/changeset/2187b7e1643c/

Log:    Cosmetic changes.

diff --git a/cffi/verifier.py b/cffi/verifier.py
--- a/cffi/verifier.py
+++ b/cffi/verifier.py
@@ -254,7 +254,6 @@
             prnt('    return Py_True;')
             prnt('  }')
         prnt('}')
-        prnt()
         prnt('static void _cffi_check_%s(struct %s *p)' % (name, name))
         prnt('{')
         prnt('  /* only to generate compile-time warnings or errors */')
@@ -268,8 +267,9 @@
             else:
                 # only accept exactly the type declared
                 prnt('  { %s = &p->%s; }' % (
-                    ftype.get_c_name('* tmp'), fname))
+                    ftype.get_c_name(' *tmp'), fname))
         prnt('}')
+        prnt()
 
     def generate_cpy_struct_method(self, tp, name):
         self.prnt('  {"_cffi_struct_%s", _cffi_struct_%s, METH_NOARGS},' % (
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to