Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
04923886
Commit
04923886
authored
Jun 14, 2019
by
gsamain
Committed by
Xavier Thompson
Aug 17, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reorder reifying messages attributes construction (target object first, args after)
parent
9c09f591
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+3
-4
No files found.
Cython/Compiler/ModuleNode.py
View file @
04923886
...
...
@@ -1244,8 +1244,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
# Declaring target object & reified method arguments
code
.
putln
(
"%s;"
%
target_object_code
)
constructor_decl_list
=
[
target_object_argument_code
,
"ActhonSyncInterface* sync_method"
,
"ActhonResultInterface* result_object"
]
initialized_arg_names
=
[]
initialized_arg_cnames
=
[]
initialized_arg_names
=
[
target_object_name
]
initialized_arg_cnames
=
[
target_object_cname
]
opt_arg_count
=
reified_function_entry
.
type
.
optional_arg_count
for
i
in
range
(
len
(
reified_function_entry
.
type
.
args
)
-
opt_arg_count
):
...
...
@@ -1269,7 +1269,6 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
constructor_args_declaration
=
", "
.
join
(
constructor_decl_list
)
initializer_list
=
[
"%s(%s)"
%
(
cname
,
name
)
for
name
,
cname
in
zip
(
initialized_arg_names
,
initialized_arg_cnames
)]
initializer_list
.
append
(
"%s(%s)"
%
(
target_object_cname
,
target_object_name
))
constructor_initializer_list_declaration
=
", "
.
join
(
initializer_list
)
code
.
putln
(
"%s(%s) : ActhonMessageInterface(sync_method, result_object), %s {"
%
(
class_name
,
...
...
@@ -1300,7 +1299,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
code
.
putln
(
"}"
)
result_assignment
=
""
reified_call_args_list
=
initialized_arg_cnames
[:]
reified_call_args_list
=
initialized_arg_cnames
[
1
:]
if
opt_arg_count
:
reified_call_args_list
.
append
(
message_opt_arg_attr_name
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment