51 int nLastSaved = 1000;
58 if ( Buffer[Len-1] ==
'\n' )
68 Buffer[
strlen(Buffer)-1] !=
'?' )
74 if ( !
strcmp(pStr, Buffer) )
106 pFile = fopen(
"abc.history",
"rb" );
109 while ( fgets( Buffer,
ABC_MAX_STR, pFile ) != NULL )
112 if ( Buffer[Len-1] ==
'\n' )
137 pFile = fopen(
"abc.history",
"wb" );
140 Abc_Print( 0,
"Cannot open file \"abc.history\" for writing.\n" );
145 fprintf( pFile,
"%s\n", pStr );
167 printf(
"================== Command history ==================\n" );
169 printf(
"%s\n", pStr );
170 printf(
"=====================================================\n" );
#define Vec_PtrForEachEntryStart(Type, vVec, pEntry, i, Start)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
static int Abc_MaxInt(int a, int b)
static int Vec_PtrSize(Vec_Ptr_t *p)
static void Vec_PtrRemove(Vec_Ptr_t *p, void *Entry)
void Cmd_HistoryWrite(Abc_Frame_t *p, int Limit)
void Cmd_HistoryPrint(Abc_Frame_t *p, int Limit)
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
#define ABC_NAMESPACE_IMPL_END
void Cmd_HistoryRead(Abc_Frame_t *p)
static void Abc_Print(int level, const char *format,...)
#define ABC_NAMESPACE_IMPL_START
ABC_NAMESPACE_IMPL_START void Cmd_HistoryAddCommand(Abc_Frame_t *p, const char *command)
DECLARATIONS ///.