00001 00021 #include "mainInt.h" 00022 #include "cmd.h" 00023 #include "cmdInt.h" 00024 00028 00032 00044 void Cmd_HistoryAddCommand( Abc_Frame_t * p, char * command ) 00045 { 00046 static char Buffer[MAX_STR]; 00047 strcpy( Buffer, command ); 00048 if ( command[strlen(command)-1] != '\n' ) 00049 strcat( Buffer, "\n" ); 00050 Vec_PtrPush( p->aHistory, Extra_UtilStrsav(Buffer) ); 00051 } 00052