mirror of https://github.com/YosysHQ/abc.git
Added recording history of used commands into file 'abc.history' (Windows only).
This commit is contained in:
parent
bffbd05a2f
commit
fba0552f87
|
|
@ -67,10 +67,15 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
|
||||||
if ( !strcmp(pStr, Buffer) )
|
if ( !strcmp(pStr, Buffer) )
|
||||||
break;
|
break;
|
||||||
if ( i == Vec_PtrSize(p->aHistory) )
|
if ( i == Vec_PtrSize(p->aHistory) )
|
||||||
{
|
{ // add new entry
|
||||||
Vec_PtrPush( p->aHistory, Extra_UtilStrsav(Buffer) );
|
Vec_PtrPush( p->aHistory, Extra_UtilStrsav(Buffer) );
|
||||||
Cmd_HistoryWrite( p, nLastSaved );
|
Cmd_HistoryWrite( p, nLastSaved );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{ // put at the end
|
||||||
|
Vec_PtrRemove( p->aHistory, pStr );
|
||||||
|
Vec_PtrPush( p->aHistory, pStr );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue