Commit e5c3796b authored by Oriol Tintó-Prims's avatar Oriol Tintó-Prims
Browse files

Function is_pointer has been adapted NEMO merge needs. Won't be compatible...

Function is_pointer has been adapted NEMO merge needs. Won't be compatible with the dwarf developments.
parent d3997965
......@@ -1529,15 +1529,8 @@ def is_pointer(attributes, variables):
if isinstance(attributes, str):
attributes = split_attributes(attributes)
assert isinstance(attributes, list)
if "pointer" in attributes:
pointed_object = attributes[0]
if pointed_object.count("procedure"):
pointed_object = pointed_object.replace("procedure", "")
pointed_object = close_brackets(pointed_object)
return pointed_object
if variables.count("=>"):
pointed_object = variables.split("=>")[1]
return pointed_object.strip()
if "pointer" in attributes or "POINTER" in attributes:
return True
return False
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment