abc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
cmd.h
Go to the documentation of this file.
1 /**CFile****************************************************************
2 
3  FileName [cmd.h]
4 
5  SystemName [ABC: Logic synthesis and verification system.]
6 
7  PackageName [Command processing package.]
8 
9  Synopsis [External declarations of the command package.]
10 
11  Author [Alan Mishchenko]
12 
13  Affiliation [UC Berkeley]
14 
15  Date [Ver. 1.0. Started - June 20, 2005.]
16 
17  Revision [$Id: cmd.h,v 1.00 2005/06/20 00:00:00 alanmi Exp $]
18 
19 ***********************************************************************/
20 
21 #ifndef ABC__base__cmd__cmd_h
22 #define ABC__base__cmd__cmd_h
23 
24 
25 ////////////////////////////////////////////////////////////////////////
26 /// INCLUDES ///
27 ////////////////////////////////////////////////////////////////////////
28 
30 
31 ////////////////////////////////////////////////////////////////////////
32 /// PARAMETERS ///
33 ////////////////////////////////////////////////////////////////////////
34 
35 ////////////////////////////////////////////////////////////////////////
36 /// STRUCTURE DEFINITIONS ///
37 ////////////////////////////////////////////////////////////////////////
38 
39 typedef struct MvCommand Abc_Command; // one command
40 typedef struct MvAlias Abc_Alias; // one alias
41 
42 ////////////////////////////////////////////////////////////////////////
43 /// MACRO DEFINITIONS ///
44 ////////////////////////////////////////////////////////////////////////
45 
46 ////////////////////////////////////////////////////////////////////////
47 /// FUNCTION DEFINITIONS ///
48 ////////////////////////////////////////////////////////////////////////
49 
50 /*=== cmd.c ===========================================================*/
51 extern void Cmd_Init( Abc_Frame_t * pAbc );
52 extern void Cmd_End( Abc_Frame_t * pAbc );
53 /*=== cmdApi.c ========================================================*/
54 typedef int (*Cmd_CommandFuncType)(Abc_Frame_t*, int, char**);
55 extern int Cmd_CommandIsDefined( Abc_Frame_t * pAbc, const char * sName );
56 extern void Cmd_CommandAdd( Abc_Frame_t * pAbc, const char * sGroup, const char * sName, Cmd_CommandFuncType pFunc, int fChanges );
57 extern ABC_DLL int Cmd_CommandExecute( Abc_Frame_t * pAbc, const char * sCommand );
58 /*=== cmdFlag.c ========================================================*/
59 extern char * Cmd_FlagReadByName( Abc_Frame_t * pAbc, char * flag );
60 extern void Cmd_FlagDeleteByName( Abc_Frame_t * pAbc, const char * key );
61 extern void Cmd_FlagUpdateValue( Abc_Frame_t * pAbc, const char * key, char * value );
62 /*=== cmdHist.c ========================================================*/
63 extern void Cmd_HistoryAddCommand( Abc_Frame_t * pAbc, const char * command );
64 extern void Cmd_HistoryRead( Abc_Frame_t * p );
65 extern void Cmd_HistoryWrite( Abc_Frame_t * p, int Limit );
66 extern void Cmd_HistoryPrint( Abc_Frame_t * p, int Limit );
67 /*=== cmdLoad.c ========================================================*/
68 extern int CmdCommandLoad( Abc_Frame_t * pAbc, int argc, char ** argv );
69 
70 
71 
73 
74 
75 
76 #endif
77 
78 ////////////////////////////////////////////////////////////////////////
79 /// END OF FILE ///
80 ////////////////////////////////////////////////////////////////////////
81 
INCLUDES ///.
Definition: cmdInt.h:43
typedefABC_NAMESPACE_HEADER_START struct MvCommand Abc_Command
INCLUDES ///.
Definition: cmd.h:39
void Cmd_HistoryPrint(Abc_Frame_t *p, int Limit)
Definition: cmdHist.c:161
char ** argv
Definition: cmdInt.h:55
int argc
Definition: cmdInt.h:54
static Llb_Mgr_t * p
Definition: llb3Image.c:950
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
Definition: cmdApi.c:99
Definition: cmdInt.h:51
void Cmd_Init(Abc_Frame_t *pAbc)
MACRO DEFINITIONS ///.
Definition: cmd.c:79
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
Definition: cmdApi.c:63
int Cmd_CommandIsDefined(Abc_Frame_t *pAbc, const char *sName)
DECLARATIONS ///.
Definition: cmdApi.c:47
#define ABC_DLL
Definition: abc_global.h:53
void Cmd_HistoryAddCommand(Abc_Frame_t *pAbc, const char *command)
DECLARATIONS ///.
Definition: cmdHist.c:48
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
int CmdCommandLoad(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.
Definition: cmdLoad.c:48
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
Definition: abc_global.h:105
#define ABC_NAMESPACE_HEADER_END
Definition: abc_global.h:106
void Cmd_FlagUpdateValue(Abc_Frame_t *pAbc, const char *key, char *value)
Definition: cmdFlag.c:65
void Cmd_HistoryRead(Abc_Frame_t *p)
Definition: cmdHist.c:100
int(* Cmd_CommandFuncType)(Abc_Frame_t *, int, char **)
Definition: cmd.h:54
void Cmd_FlagDeleteByName(Abc_Frame_t *pAbc, const char *key)
Definition: cmdFlag.c:90
char * sName
Definition: cmdInt.h:53
enum keys key
int value
void Cmd_HistoryWrite(Abc_Frame_t *p, int Limit)
Definition: cmdHist.c:131
char * Cmd_FlagReadByName(Abc_Frame_t *pAbc, char *flag)
DECLARATIONS ///.
Definition: cmdFlag.c:47
void Cmd_End(Abc_Frame_t *pAbc)
Definition: cmd.c:127