s/util/curses.
This commit is contained in:
@@ -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 */
|
||||
@@ -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();
|
||||
@@ -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"
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)))) {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include <stdlib.h>
|
||||
#include <ncurses.h>
|
||||
#include "util.h"
|
||||
#include "curses.h"
|
||||
#include "game.h"
|
||||
#include "keyboard.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user