Generator/RB_Name_Headers [ Functions ]
FUNCTION
Give all headers a unique name. This makes sure that if two headers have the same name linking to one of the headers still works.
SYNOPSIS
void RB_Name_Headers( struct RB_header **headers, long count )
SOURCE
#define MAX_UNIQUE_ID_LENGTH 80
{
int i;
char id[MAX_UNIQUE_ID_LENGTH + 1];
RB_Say( "Assigning headers a unique name.\n", SAY_DEBUG );
for ( i = 0; i < count; ++i )
{
struct RB_header *header;
header = headers[i];
sprintf( id, "robo%d", i );
header->unique_name = RB_StrDup( id );
}
}