Document/RB_Document_Create_Parts [ Functions ]

FUNCTION

Create all the parts of a document based on the sourcefiles in the source tree. This creates a new RB_Part for each file in the source tree.

INPUTS

SOURCE

void RB_Document_Create_Parts(
    struct RB_Document *document )
{
    struct RB_Filename *i_file = NULL;

    assert( document );
    assert( document->srctree );

    for ( i_file = document->srctree->first; i_file; i_file = i_file->next )
    {
        struct RB_Part     *rbpart;

        rbpart = RB_Get_RB_Part(  );
        RB_Part_Add_Source( rbpart, i_file );
        RB_Document_Add_Part( document, rbpart );
    }
}