mirror of https://github.com/YosysHQ/abc.git
56 lines
1.7 KiB
C
56 lines
1.7 KiB
C
/**CFile****************************************************************
|
|
|
|
FileName [cmdHist.c]
|
|
|
|
SystemName [ABC: Logic synthesis and verification system.]
|
|
|
|
PackageName [Command processing package.]
|
|
|
|
Synopsis [Procedures working with history.]
|
|
|
|
Author [Alan Mishchenko]
|
|
|
|
Affiliation [UC Berkeley]
|
|
|
|
Date [Ver. 1.0. Started - June 20, 2005.]
|
|
|
|
Revision [$Id: cmdHist.c,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
|
|
|
|
***********************************************************************/
|
|
|
|
#include "mainInt.h"
|
|
#include "cmd.h"
|
|
#include "cmdInt.h"
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// DECLARATIONS ///
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// FUNCTION DEFINITIONS ///
|
|
////////////////////////////////////////////////////////////////////////
|
|
|
|
/**Function*************************************************************
|
|
|
|
Synopsis []
|
|
|
|
Description []
|
|
|
|
SideEffects []
|
|
|
|
SeeAlso []
|
|
|
|
***********************************************************************/
|
|
void Cmd_HistoryAddCommand( Abc_Frame_t * p, char * command )
|
|
{
|
|
static char Buffer[MAX_STR];
|
|
strcpy( Buffer, command );
|
|
if ( command[strlen(command)-1] != '\n' )
|
|
strcat( Buffer, "\n" );
|
|
Vec_PtrPush( p->aHistory, Extra_UtilStrsav(Buffer) );
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////
|
|
/// END OF FILE ///
|
|
////////////////////////////////////////////////////////////////////////
|