00001
00021 #ifndef __CMD_INT_H__
00022 #define __CMD_INT_H__
00023
00027
00028 #include "mainInt.h"
00029 #include "cmd.h"
00030
00034
00038
00039 struct MvCommand
00040 {
00041 char * sName;
00042 char * sGroup;
00043 void * pFunc;
00044 int fChange;
00045 };
00046
00047 struct MvAlias
00048 {
00049 char * sName;
00050 int argc;
00051 char ** argv;
00052 };
00053
00057
00061
00062
00063 extern void CmdCommandAliasAdd( Abc_Frame_t * pAbc, char * sName, int argc, char ** argv );
00064 extern void CmdCommandAliasPrint( Abc_Frame_t * pAbc, Abc_Alias * pAlias );
00065 extern char * CmdCommandAliasLookup( Abc_Frame_t * pAbc, char * sCommand );
00066 extern void CmdCommandAliasFree( Abc_Alias * p );
00067
00068 extern int CmdCommandDispatch( Abc_Frame_t * pAbc, int argc, char ** argv );
00069 extern char * CmdSplitLine( Abc_Frame_t * pAbc, char * sCommand, int * argc, char *** argv );
00070 extern int CmdApplyAlias( Abc_Frame_t * pAbc, int * argc, char *** argv, int * loop );
00071 extern char * CmdHistorySubstitution( Abc_Frame_t * pAbc, char * line, int * changed );
00072 extern FILE * CmdFileOpen( Abc_Frame_t * pAbc, char * sFileName, char * sMode, char ** pFileNameReal, int silent );
00073 extern void CmdFreeArgv( int argc, char ** argv );
00074 extern void CmdCommandFree( Abc_Command * pCommand );
00075 extern void CmdCommandPrint( Abc_Frame_t * pAbc, bool fPrintAll );
00076 extern void CmdPrintTable( st_table * tTable, int fAliases );
00077
00081
00082 #endif
00083