예제 #1
0
파일: decl.cpp 프로젝트: darwin/inferno
bool StructDef::printStructureStreamShape(std::ostream& out)
{
    for (int j=0; j < nComponents; j++)
    {
        if(!components[j]->printStructureStreamShapeInternals(out))
          return false;

        Decl *decl = components[j]->next;
        while (decl != NULL)
        {
            if(!decl->printStructureStreamShapeInternals(out))
              return false;
            decl = decl->next;
        }
    }
    return true;
}