Author: Armin Rigo <[email protected]>
Branch: win32-stdcall
Changeset: r2321:2def2a1321b0
Date: 2015-10-06 13:20 +0200
http://bitbucket.org/cffi/cffi/changeset/2def2a1321b0/

Log:    Fix

diff --git a/cffi/cparser.py b/cffi/cparser.py
--- a/cffi/cparser.py
+++ b/cffi/cparser.py
@@ -464,8 +464,9 @@
         # to detect __stdcall functions: we textually replace "__stdcall"
         # with "volatile volatile const" above.
         abi = None
-        if typenode.type.quals[-3:] == ['volatile', 'volatile', 'const']:
-            abi = '__stdcall'
+        if hasattr(typenode.type, 'quals'): # else, probable syntax error 
anyway
+            if typenode.type.quals[-3:] == ['volatile', 'volatile', 'const']:
+                abi = '__stdcall'
         return model.RawFunctionType(tuple(args), result, ellipsis, abi)
 
     def _as_func_arg(self, type, quals):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to