Example #1
0
extern void f_EnumeratorDestroy( Enumerator_t Enumerator )
{
   if( Enumerator )
   {
      if( Enumerator->iCheck != ENUMERATOR_CHECK ) Abort();
      f_NameDestroy( Enumerator->Name );
      f_ExprDestroy( Enumerator->Expr );
      ckfree( (char*)Enumerator );
   }
}
Example #2
0
extern void f_InitDestroy( Init_t Init )
{
   if( Init )
   {
      if( Init->iCheck != INIT_CHECK ) Abort();
      if( Init->Expr )
         f_ExprDestroy( Init->Expr );
      if( Init->ListInit )
         f_ListDestroy( Init->ListInit, (void(*)()) f_InitDestroy );
      ckfree( (char*)Init );
   }
}