예제 #1
0
파일: cp_enum.c 프로젝트: mildrock/dummy
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 );
   }
}
예제 #2
0
파일: cp_init.c 프로젝트: AndresGG/sn-8.4
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 );
   }
}