[pypy-commit] cffi cffi-1.0: Rename the hidden argument 'result'

arigo noreply at buildbot.pypy.org
Sun May 10 13:10:44 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
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)


More information about the pypy-commit mailing list