Example #1
0
 def load(self):
     import gdata
     self.globals = gdata.parse_stream(self.stream_file)
     self.vars = {}
     self.funcs = {}
     for g in self.globals:
         if not hasattr(g, 'symtype'): continue
         if g.symtype == 0:
             if g.name.startswith("_"):
                 self.vars[g.name[1:]] = g
             else:
                 self.vars[g.name] = g
         elif g.symtype == 2:
             self.funcs[g.name] = g
Example #2
0
 def load(self):
     import gdata
     self.globals = gdata.parse_stream(self.stream_file)
     self.vars = {}
     self.funcs = {}
     for g in self.globals:
         if not hasattr(g, 'symtype'): continue
         if g.symtype == 0:
             if g.name.startswith("_"):
                 self.vars[g.name[1:]] = g
             else:
                 self.vars[g.name] = g
         elif g.symtype == 2:
             self.funcs[g.name] = g
Example #3
0
 def load(self):
     import gdata
     self.globals = gdata.parse_stream(self.stream_file, 4)