Suggested fix to allow .constr files to have empty lines.

This commit is contained in:
Alan Mishchenko 2014-08-13 16:46:20 -07:00
parent f907347484
commit c8bfe83e55
1 changed files with 2 additions and 0 deletions

View File

@ -218,6 +218,8 @@ void Abc_SclReadTimingConstr( Abc_Frame_t * pAbc, char * pFileName, int fVerbose
while ( fgets( Buffer, 1000, pFile ) )
{
pToken = strtok( Buffer, " \t\r\n" );
if ( pToken == NULL )
continue;
if ( !strcmp(pToken, "set_driving_cell") )
{
Abc_FrameSetDrivingCell( Abc_UtilStrsav(strtok(NULL, " \t\r\n")) );