const map<string, VariableDeclaration *> &prev_vars = stage->previous->content.variables;
for(map<string, VariableDeclaration *>::const_iterator i=prev_vars.begin(); i!=prev_vars.end(); ++i)
{
- bool linked = false;
- for(vector<VariableDeclaration *>::const_iterator j=pass_vars.begin(); (!linked && j!=pass_vars.end()); ++j)
- linked = ((*j)->linked_declaration==i->second);
+ if(i->second->interface!="out")
+ continue;
- if(!linked && generate_interface(*i->second, "in", i->second->name))
+ if(!i->second->linked_declaration && generate_interface(*i->second, "in", i->second->name))
pass_vars.push_back(i->second);
}
}