71 if (
st__delete( pAbc->tCommands, &key, &value ) )
74 fprintf( pAbc->Err,
"Cmd warning: redefining '%s'\n", sName );
82 pCommand->pFunc = pFunc;
83 pCommand->fChange = fChanges;
84 fStatus =
st__insert( pAbc->tCommands, pCommand->sName, (
char *)pCommand );
101 int fStatus = 0,
argc, loop;
102 const char * sCommandNext;
105 if ( !pAbc->fAutoexac && !pAbc->fSource )
107 sCommandNext = sCommand;
117 while ( fStatus == 0 && *sCommandNext !=
'\0' );
ABC_NAMESPACE_IMPL_START int Cmd_CommandIsDefined(Abc_Frame_t *pAbc, const char *sName)
DECLARATIONS ///.
typedefABC_NAMESPACE_HEADER_START struct MvCommand Abc_Command
INCLUDES ///.
int CmdCommandDispatch(Abc_Frame_t *pAbc, int *argc, char ***argv)
int st__delete(st__table *table, const char **keyp, char **value)
int st__insert(st__table *table, const char *key, char *value)
int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
const char * CmdSplitLine(Abc_Frame_t *pAbc, const char *sCommand, int *argc, char ***argv)
#define ABC_ALLOC(type, num)
#define st__is_member(table, key)
void Cmd_HistoryAddCommand(Abc_Frame_t *pAbc, const char *command)
DECLARATIONS ///.
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
#define ABC_NAMESPACE_IMPL_END
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
#define ABC_NAMESPACE_IMPL_START
void CmdFreeArgv(int argc, char **argv)
int(* Cmd_CommandFuncType)(Abc_Frame_t *, int, char **)
void CmdCommandFree(Abc_Command *pCommand)
int CmdApplyAlias(Abc_Frame_t *pAbc, int *argc, char ***argv, int *loop)