Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions DadoPonto/DADOPONTOS.c → DadoPontos/Source/DADOPONTOS.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include "GENERICO.H"

#define DADO_OWN
#include "DADOPONTOS.h"
Expand Down Expand Up @@ -123,6 +124,8 @@ DADPnt_tpCondRet DADPtn_ObterDono(tppDadoPontos DadoPonto, char * CorDonoAtual)

DADPnt_tpCondRet DADPtn_DestruirDado(tppDadoPontos Dado)
{
if(Dado == NULL)
return DADPnt_CondRetDadoPontosNaoExiste;
free(Dado);
return DADPnt_CondRetOK;
}
Expand Down
4 changes: 3 additions & 1 deletion DadoPonto/DADOPONTOS.h → DadoPontos/Source/DADOPONTOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
#define DADOPONTOS_EXT extern
#endif

#include "Generico.h"

typedef struct tgDadoPontos * tppDadoPontos;
typedef struct tgPlayers * tppPlayers;
/***********************************************************************
Expand All @@ -48,7 +50,7 @@ typedef struct tgPlayers * tppPlayers;
DADPnt_CondRetErro = 1 ,
/* Estrutura do DadoPontos est� errada */

DADPnt_CondRetMatrizNaoExiste = 2 ,
DADPnt_CondRetDadoPontosNaoExiste = 2 ,
/* DadoPontos n�o existe */

DADPnt_CondRetFaltouMemoria = 3
Expand Down
Loading