abc-master
Main Page
Namespaces
Data Structures
Files
File List
Globals
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
29
ABC_NAMESPACE_HEADER_START
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
72
ABC_NAMESPACE_HEADER_END
73
74
75
76
#endif
77
78
////////////////////////////////////////////////////////////////////////
79
/// END OF FILE ///
80
////////////////////////////////////////////////////////////////////////
81
MvCommand
INCLUDES ///.
Definition:
cmdInt.h:43
Abc_Command
typedefABC_NAMESPACE_HEADER_START struct MvCommand Abc_Command
INCLUDES ///.
Definition:
cmd.h:39
Cmd_HistoryPrint
void Cmd_HistoryPrint(Abc_Frame_t *p, int Limit)
Definition:
cmdHist.c:161
MvAlias::argv
char ** argv
Definition:
cmdInt.h:55
MvAlias::argc
int argc
Definition:
cmdInt.h:54
p
static Llb_Mgr_t * p
Definition:
llb3Image.c:950
Cmd_CommandExecute
ABC_DLL int Cmd_CommandExecute(Abc_Frame_t *pAbc, const char *sCommand)
Definition:
cmdApi.c:99
MvAlias
Definition:
cmdInt.h:51
Cmd_Init
void Cmd_Init(Abc_Frame_t *pAbc)
MACRO DEFINITIONS ///.
Definition:
cmd.c:79
Cmd_CommandAdd
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
Definition:
cmdApi.c:63
Cmd_CommandIsDefined
int Cmd_CommandIsDefined(Abc_Frame_t *pAbc, const char *sName)
DECLARATIONS ///.
Definition:
cmdApi.c:47
ABC_DLL
#define ABC_DLL
Definition:
abc_global.h:53
Cmd_HistoryAddCommand
void Cmd_HistoryAddCommand(Abc_Frame_t *pAbc, const char *command)
DECLARATIONS ///.
Definition:
cmdHist.c:48
Abc_Frame_t
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
Definition:
base/main/main.h:39
CmdCommandLoad
int CmdCommandLoad(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.
Definition:
cmdLoad.c:48
ABC_NAMESPACE_HEADER_START
#define ABC_NAMESPACE_HEADER_START
NAMESPACES ///.
Definition:
abc_global.h:105
ABC_NAMESPACE_HEADER_END
#define ABC_NAMESPACE_HEADER_END
Definition:
abc_global.h:106
Cmd_FlagUpdateValue
void Cmd_FlagUpdateValue(Abc_Frame_t *pAbc, const char *key, char *value)
Definition:
cmdFlag.c:65
Cmd_HistoryRead
void Cmd_HistoryRead(Abc_Frame_t *p)
Definition:
cmdHist.c:100
Cmd_CommandFuncType
int(* Cmd_CommandFuncType)(Abc_Frame_t *, int, char **)
Definition:
cmd.h:54
Cmd_FlagDeleteByName
void Cmd_FlagDeleteByName(Abc_Frame_t *pAbc, const char *key)
Definition:
cmdFlag.c:90
MvAlias::sName
char * sName
Definition:
cmdInt.h:53
key
enum keys key
Definition:
misc/espresso/main.h:25
value
int value
Definition:
misc/espresso/main.h:90
Cmd_HistoryWrite
void Cmd_HistoryWrite(Abc_Frame_t *p, int Limit)
Definition:
cmdHist.c:131
Cmd_FlagReadByName
char * Cmd_FlagReadByName(Abc_Frame_t *pAbc, char *flag)
DECLARATIONS ///.
Definition:
cmdFlag.c:47
Cmd_End
void Cmd_End(Abc_Frame_t *pAbc)
Definition:
cmd.c:127
src
base
cmd
cmd.h
Generated on Thu Dec 18 2014 16:11:52 for abc-master by
1.8.6