#include "mainInt.h"
Go to the source code of this file.
Functions | |
char * | Cmd_FlagReadByName (Abc_Frame_t *pAbc, char *flag) |
void | Cmd_FlagUpdateValue (Abc_Frame_t *pAbc, char *key, char *value) |
void | Cmd_FlagDeleteByName (Abc_Frame_t *pAbc, char *key) |
void Cmd_FlagDeleteByName | ( | Abc_Frame_t * | pAbc, | |
char * | key | |||
) |
Function********************************************************************
Synopsis [Deletes a set value by calling instead of unset command.]
Description [Deletes a set value by calling instead of unset command.]
SideEffects []
char* Cmd_FlagReadByName | ( | Abc_Frame_t * | pAbc, | |
char * | flag | |||
) |
CFile****************************************************************
FileName [cmdFlag.c]
SystemName [ABC: Logic synthesis and verification system.]
PackageName [Command processing package.]
Synopsis [Procedures working with flags.]
Author [Alan Mishchenko]
Affiliation [UC Berkeley]
Date [Ver. 1.0. Started - June 20, 2005.]
Revision [
] DECLARATIONS /// FUNCTION DEFINITIONS ///Function********************************************************************
Synopsis [Looks up value of flag in table of named values.]
Description [The command parser maintains a table of named values. These are manipulated using the 'set' and 'unset' commands. The value of the named flag is returned, or NULL is returned if the flag has not been set.]
SideEffects []
void Cmd_FlagUpdateValue | ( | Abc_Frame_t * | pAbc, | |
char * | key, | |||
char * | value | |||
) |
Function********************************************************************
Synopsis [Updates a set value by calling instead of set command.]
Description [Updates a set value by calling instead of set command.]
SideEffects []
Definition at line 61 of file cmdFlag.c.
00062 { 00063 char * oldValue, * newValue; 00064 if ( !key ) 00065 return; 00066 if ( value ) 00067 newValue = Extra_UtilStrsav(value); 00068 else 00069 newValue = Extra_UtilStrsav(""); 00070 // newValue = NULL; 00071 if ( st_delete(pAbc->tFlags, &key, &oldValue) ) 00072 FREE(oldValue); 00073 st_insert( pAbc->tFlags, key, newValue ); 00074 }