s/util/curses.

This commit is contained in:
Murilo Pereira
2011-05-08 20:38:36 -03:00
parent 4802244efa
commit 3d421f31d3
10 changed files with 13 additions and 11 deletions

View File

@@ -1,7 +1,7 @@
#include <stdio.h>
#include <ncurses.h>
#include <locale.h>
#include "util.h"
#include "curses.h"
void initialize_curses() {
setlocale(LC_ALL, "en_US.utf-8"); /* supporting unicode characters */

View File

@@ -1,5 +1,5 @@
#ifndef UTIL_H
#define UTIL_H
#ifndef TTY_SOLITAIRE_CURSES_H
#define TTY_SOLITAIRE_CURSES_H
void initialize_curses();
void end_curses();

View File

@@ -5,7 +5,7 @@
#include <errno.h>
#include <time.h>
#include "display.h"
#include "util.h"
#include "curses.h"
#include "common.h"
#include "game.h"

View File

@@ -2,6 +2,7 @@
#include "card.h"
#include "game.h"
#include "display.h"
#include "curses.h"
#include "keyboard.h"
static bool cursor_on_stock(struct cursor *cursor) {

View File

@@ -5,6 +5,7 @@
#include <string.h>
#include <errno.h>
#include "stack.h"
#include "common.h"
void allocate_stack(struct stack **stack) {
if (!(*stack = malloc(sizeof(**stack)))) {

View File

@@ -1,6 +1,6 @@
#include <stdlib.h>
#include <ncurses.h>
#include "util.h"
#include "curses.h"
#include "game.h"
#include "keyboard.h"