Commit 167fceac by Alan Mishchenko

Enabling command history on Linux.

parent 30146943
...@@ -102,7 +102,7 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command ) ...@@ -102,7 +102,7 @@ void Cmd_HistoryAddCommand( Abc_Frame_t * p, const char * command )
***********************************************************************/ ***********************************************************************/
void Cmd_HistoryRead( Abc_Frame_t * p ) void Cmd_HistoryRead( Abc_Frame_t * p )
{ {
#if defined(WIN32) && defined(ABC_USE_HISTORY) #if defined(ABC_USE_HISTORY)
char Buffer[ABC_MAX_STR]; char Buffer[ABC_MAX_STR];
FILE * pFile; FILE * pFile;
assert( Vec_PtrSize(p->aHistory) == 0 ); assert( Vec_PtrSize(p->aHistory) == 0 );
...@@ -133,7 +133,7 @@ void Cmd_HistoryRead( Abc_Frame_t * p ) ...@@ -133,7 +133,7 @@ void Cmd_HistoryRead( Abc_Frame_t * p )
***********************************************************************/ ***********************************************************************/
void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit )
{ {
#if defined(WIN32) && defined(ABC_USE_HISTORY) #if defined(ABC_USE_HISTORY)
FILE * pFile; FILE * pFile;
char * pStr; char * pStr;
int i; int i;
...@@ -163,7 +163,7 @@ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit ) ...@@ -163,7 +163,7 @@ void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit )
***********************************************************************/ ***********************************************************************/
void Cmd_HistoryPrint( Abc_Frame_t * p, int Limit ) void Cmd_HistoryPrint( Abc_Frame_t * p, int Limit )
{ {
#if defined(WIN32) && defined(ABC_USE_HISTORY) #if defined(ABC_USE_HISTORY)
char * pStr; char * pStr;
int i; int i;
Limit = Abc_MaxInt( 0, Vec_PtrSize(p->aHistory)-Limit ); Limit = Abc_MaxInt( 0, Vec_PtrSize(p->aHistory)-Limit );
......
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