Commit db2c854f authored by Stefan Behnel's avatar Stefan Behnel

whitespace

parent bb1ba04e
...@@ -6582,7 +6582,7 @@ class ListNode(SequenceNode): ...@@ -6582,7 +6582,7 @@ class ListNode(SequenceNode):
def calculate_constant_result(self): def calculate_constant_result(self):
if self.mult_factor: if self.mult_factor:
raise ValueError() # may exceed the compile time memory raise ValueError() # may exceed the compile time memory
self.constant_result = [ self.constant_result = [
arg.constant_result for arg in self.args] arg.constant_result for arg in self.args]
...@@ -6600,15 +6600,15 @@ class ListNode(SequenceNode): ...@@ -6600,15 +6600,15 @@ class ListNode(SequenceNode):
elif self.type.is_array: elif self.type.is_array:
for i, arg in enumerate(self.args): for i, arg in enumerate(self.args):
code.putln("%s[%s] = %s;" % ( code.putln("%s[%s] = %s;" % (
self.result(), self.result(),
i, i,
arg.result())) arg.result()))
elif self.type.is_struct: elif self.type.is_struct:
for arg, member in zip(self.args, self.type.scope.var_entries): for arg, member in zip(self.args, self.type.scope.var_entries):
code.putln("%s.%s = %s;" % ( code.putln("%s.%s = %s;" % (
self.result(), self.result(),
member.cname, member.cname,
arg.result())) arg.result()))
else: else:
raise InternalError("List type never specified") raise InternalError("List type never specified")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment