Commit c8bfe83e by Alan Mishchenko

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

parent f9073474
...@@ -218,6 +218,8 @@ void Abc_SclReadTimingConstr( Abc_Frame_t * pAbc, char * pFileName, int fVerbose ...@@ -218,6 +218,8 @@ void Abc_SclReadTimingConstr( Abc_Frame_t * pAbc, char * pFileName, int fVerbose
while ( fgets( Buffer, 1000, pFile ) ) while ( fgets( Buffer, 1000, pFile ) )
{ {
pToken = strtok( Buffer, " \t\r\n" ); pToken = strtok( Buffer, " \t\r\n" );
if ( pToken == NULL )
continue;
if ( !strcmp(pToken, "set_driving_cell") ) if ( !strcmp(pToken, "set_driving_cell") )
{ {
Abc_FrameSetDrivingCell( Abc_UtilStrsav(strtok(NULL, " \t\r\n")) ); Abc_FrameSetDrivingCell( Abc_UtilStrsav(strtok(NULL, " \t\r\n")) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment