342 for category in self.Controler.GetBlockTypes(self.TagName, self.Debug): |
342 for category in self.Controler.GetBlockTypes(self.TagName, self.Debug): |
343 for blocktype in category["list"]: |
343 for blocktype in category["list"]: |
344 blockname = blocktype["name"].upper() |
344 blockname = blocktype["name"].upper() |
345 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys(): |
345 if blocktype["type"] == "function" and blockname not in self.Keywords and blockname not in self.Variables.keys(): |
346 interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != '']) |
346 interface = dict([(name, {}) for name, type, modifier in blocktype["inputs"] + blocktype["outputs"] if name != '']) |
|
347 for param in ["EN", "ENO"]: |
|
348 if not interface.has_key(param): |
|
349 interface[param] = {} |
347 if self.Functions.has_key(blockname): |
350 if self.Functions.has_key(blockname): |
348 self.Functions[blockname]["interface"].update(interface) |
351 self.Functions[blockname]["interface"].update(interface) |
349 self.Functions[blockname]["extensible"] |= blocktype["extensible"] |
352 self.Functions[blockname]["extensible"] |= blocktype["extensible"] |
350 else: |
353 else: |
351 self.Functions[blockname] = {"interface": interface, |
354 self.Functions[blockname] = {"interface": interface, |