From 38b7c484f31ebe314a933177ebbb2831ae5ce475 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Wed, 16 Sep 2009 19:01:45 +0000 Subject: [PATCH] gdl.i: Small typo and whitespace fixes --- swig/gdl.i | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/swig/gdl.i b/swig/gdl.i index 2c70283..f617ecb 100644 --- a/swig/gdl.i +++ b/swig/gdl.i @@ -50,7 +50,7 @@ class BasicBlock: def preds(self): """ - Iteratres the predecessors list + Iterates the predecessors list """ q = self._f._q for i in xrange(0, self._f._q.npred(self.id)): @@ -58,7 +58,7 @@ class BasicBlock: def succs(self): """ - Iteratres the successors list + Iterates the successors list """ q = self._f._q for i in xrange(0, q.nsucc(self.id)): @@ -83,9 +83,11 @@ class FlowChart: # create the flowchart self._q = qflow_chart_t("", f, bounds[0], bounds[1], flags) self.size = self._q.size() + def refresh(): self._q.refresh() self.size = self._q.size() + def __getitem__(self, index): """ Returns a basic block @@ -95,5 +97,4 @@ class FlowChart: raise StopIteration return BasicBlock(index, self._q[index], self) - %}