diff python/ppci/c3/visitor.py @ 354:5477e499b039

Added some sort of string functionality
author Windel Bouwman
date Thu, 13 Mar 2014 18:59:06 +0100
parents 084cccaa5deb
children c05ab629976a
line wrap: on
line diff
--- a/python/ppci/c3/visitor.py	Sun Mar 09 18:49:10 2014 +0100
+++ b/python/ppci/c3/visitor.py	Thu Mar 13 18:59:06 2014 +0100
@@ -61,6 +61,9 @@
             self.do(node.to_type)
         elif type(node) is Member:
             self.do(node.base)
+        elif type(node) is Index:
+            self.do(node.base)
+            self.do(node.i)
         elif type(node) is Deref:
             self.do(node.ptr)
         elif type(node) is Constant:
@@ -75,6 +78,9 @@
         elif type(node) is StructureType:
             for m in node.mems:
                 self.do(m.typ)
+        elif type(node) is ArrayType:
+            self.do(node.element_type)
+            self.do(node.size)
         elif type(node) is FunctionType:
             for pt in node.parametertypes:
                 self.do(pt)