gdl.i: Small typo and whitespace fixes

This commit is contained in:
gergely.erdelyi 2009-09-16 19:01:45 +00:00
parent e27524cca5
commit 38b7c484f3

View File

@ -50,7 +50,7 @@ class BasicBlock:
def preds(self): def preds(self):
""" """
Iteratres the predecessors list Iterates the predecessors list
""" """
q = self._f._q q = self._f._q
for i in xrange(0, self._f._q.npred(self.id)): for i in xrange(0, self._f._q.npred(self.id)):
@ -58,7 +58,7 @@ class BasicBlock:
def succs(self): def succs(self):
""" """
Iteratres the successors list Iterates the successors list
""" """
q = self._f._q q = self._f._q
for i in xrange(0, q.nsucc(self.id)): for i in xrange(0, q.nsucc(self.id)):
@ -83,9 +83,11 @@ class FlowChart:
# create the flowchart # create the flowchart
self._q = qflow_chart_t("", f, bounds[0], bounds[1], flags) self._q = qflow_chart_t("", f, bounds[0], bounds[1], flags)
self.size = self._q.size() self.size = self._q.size()
def refresh(): def refresh():
self._q.refresh() self._q.refresh()
self.size = self._q.size() self.size = self._q.size()
def __getitem__(self, index): def __getitem__(self, index):
""" """
Returns a basic block Returns a basic block
@ -95,5 +97,4 @@ class FlowChart:
raise StopIteration raise StopIteration
return BasicBlock(index, self._q[index], self) return BasicBlock(index, self._q[index], self)
%} %}