Document/RB_Fill_Header_Filename [ Functions ]
FUNCTION
Fill the file_name attribute of all headers based either on the part or the singledoc name. The file_name tells in which file the documentation for the header is to be stored.
SYNOPSIS
void RB_Fill_Header_Filename( struct RB_Document *document )
SOURCE
{ struct RB_Part *i_part; RB_Say( "Computing file_name attribute for all headers.\n", SAY_DEBUG ); for ( i_part = document->parts; i_part; i_part = i_part->next ) { struct RB_header *i_header; for ( i_header = i_part->headers; i_header; i_header = i_header->next ) { if ( document->actions.do_singledoc ) { i_header->file_name = document->singledoc_name; } else if ( document->actions.do_multidoc ) { i_header->file_name = RB_Get_FullDocname( i_part->filename ); } else if ( document->actions.do_singlefile ) { i_header->file_name = document->singledoc_name; } else { assert( 0 ); } } } }