示例#1
0
LIS_tpCondRet LIS_ExcluirValorElementoCorrente ( LIS_tppLista pLista )
{
    if (pLista == NULL)
        return LIS_CondRetListaVazia;
    pLista->ExcluirValor(pLista->pElemCorr->pValor);
    pLista->pElemCorr->pValor = NULL;
    return LIS_CondRetOK;
} /* Fim funcao : LIS &Excluir valor elemento corrente */
示例#2
0
   void LiberarElemento( LIS_tppLista   pLista ,
                         tpElemLista  * pElem   )
   {
      if ( ( pLista->ExcluirValor != NULL )
        && ( pElem->pValor != NULL        ))
      {
         pLista->ExcluirValor( pElem->pValor ) ;
      } /* if */

      free( pElem ) ;

      pLista->numElem-- ;

   } /* Fim função: LIS  -Liberar elemento da lista */
示例#3
0
文件: LISTA.C 项目: Rifeli/t4
void LiberarElemento( LIS_tppLista   pLista ,
	tpElemLista  * pElem   )
{

#ifdef _DEBUG
	CED_MarcarEspacoNaoAtivo(pElem);
#endif

	if ( ( pLista->ExcluirValor != NULL )
		&& ( pElem->pValor != NULL        ))
	{
		pLista->ExcluirValor( pElem->pValor ) ;
	} /* if */

	free( pElem ) ;

	pLista->numElem-- ;

} /* Fim função: LIS  -Liberar elemento da lista */