Fixed function's prototypes.

This commit is contained in:
Murilo Soares Pereira 2010-03-31 13:04:45 -03:00
parent 4f97968dbc
commit 259f5ce2df

View File

@ -51,28 +51,11 @@ struct card {
WINDOW *initialize_shape(); WINDOW *initialize_shape();
struct card_frame *initialize_card_frame(); struct card_frame *initialize_card_frame();
struct card *initialize_card(); struct card *initialize_card();
void draw_card(struct card *card); void draw_card(struct card *);
void set_card_frame(struct card_frame *card_frame, void set_card_frame(struct card_frame *, int, int);
int start_y, void set_card_attributes(struct card *, enum value, enum suit, char);
int start_x); void set_card(struct card *, enum value, enum suit, char, int, int);
void set_card_attributes(struct card *card, void delete_card(struct card *);
enum value value,
enum suit suit,
char exposed);
void set_card(struct card *card,
enum value value,
enum suit suit,
char exposed,
int start_y,
int start_x);
void delete_card(struct card *card) {
free(card->frame->shape);
free(card->frame);
free(card);
return;
}
int main(int argc, const char *argv[]) { int main(int argc, const char *argv[]) {
char message[] = "Welcome to tty-solitaire."; char message[] = "Welcome to tty-solitaire.";
@ -199,3 +182,11 @@ void set_card(struct card *card,
return; return;
} }
void delete_card(struct card *card) {
free(card->frame->shape);
free(card->frame);
free(card);
return;
}