abc/src/base/cmd/cmdFlag.c
/**Function********************************************************************

  Synopsis    [Updates a set value by calling instead of set command.]

  Description [Updates a set value by calling instead of set command.]

  SideEffects []

******************************************************************************/
Function
Synopsis    [Updates a set value by calling instead of set command.]

Description [Updates a set value by calling instead of set command.]


Function Synopsis [ Updates a set value by calling instead of set command . ] Description [ Updates a set value by calling instead of set command . ]
void Cmd_FlagUpdateValue( Abc_Frame_t * pAbc, const char * key, char * value )
{
    char * oldValue, * newValue;
    if ( !key )
        return;
    if ( value )
        newValue = Extra_UtilStrsav(value);
    else
        newValue = Extra_UtilStrsav("");
    if ( st__delete(pAbc->tFlags, &key, &oldValue) )
        ABC_FREE(oldValue);
    st__insert( pAbc->tFlags, key, newValue );
}
void Cmd_FlagUpdateValue ( Abc_Frame_t * pAbc , const char * key , char * value ) { char * oldValue , * newValue ; if ( ! key ) return ; if ( value ) newValue = Extra_UtilStrsav ( value ) ; else newValue = Extra_UtilStrsav ( " " ) ; if ( st__delete ( pAbc -> tFlags , & key , & oldValue ) ) ABC_FREE ( oldValue ) ; st__insert ( pAbc -> tFlags , key , newValue ) ; }
Function
Synopsis    [Updates a set value by calling instead of set command.]
Function Synopsis [ Updates a set value by calling instead of set command . ]
//        newValue = NULL;