Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r1957:c540728094fa
Date: 2015-05-10 10:27 +0200
http://bitbucket.org/cffi/cffi/changeset/c540728094fa/

Log:    Rename the hidden argument 'result'

diff --git a/_cffi1/recompiler.py b/_cffi1/recompiler.py
--- a/_cffi1/recompiler.py
+++ b/_cffi1/recompiler.py
@@ -466,11 +466,11 @@
         tp_result = tp.result
         if isinstance(tp_result, model.StructOrUnion):
             context = 'result of %s' % name
-            arg = tp_result.get_c_name(' *x', context)
+            arg = tp_result.get_c_name(' *result', context)
             arguments.insert(0, arg)
             tp_result = model.void_type
             result_decl = None
-            result_code = '*x = '
+            result_code = '*result = '
         repr_arguments = ', '.join(arguments)
         repr_arguments = repr_arguments or 'void'
         name_and_arguments = '_cffi_f_%s(%s)' % (name, repr_arguments)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to