Gather curses dependencies
This commit is contained in:
@@ -12,10 +12,92 @@
|
||||
|
||||
#ifndef H_ROGUE_H
|
||||
#define H_ROGUE_H
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
#include <memory.h>
|
||||
#include <string.h>
|
||||
#include <unistd.h>
|
||||
#include <stdarg.h> /* we need va_list */
|
||||
#include <stddef.h> /* we want wchar_t */
|
||||
#include <stdbool.h>
|
||||
#include <ctype.h>
|
||||
|
||||
#include "extern.h"
|
||||
#include <time.h>
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <sys/stat.h>
|
||||
#include <errno.h>
|
||||
|
||||
#undef lines
|
||||
#ifndef DONTUSEGUI
|
||||
#include <curses.h>
|
||||
#else
|
||||
|
||||
#ifndef TRUE
|
||||
#define TRUE 1
|
||||
#endif
|
||||
#ifndef FALSE
|
||||
#define FALSE 0
|
||||
#endif
|
||||
|
||||
typedef void *WINDOW;
|
||||
WINDOW stdscr;
|
||||
|
||||
#define standout()
|
||||
#define standend()
|
||||
#define refresh()
|
||||
#define raw()
|
||||
#define noecho()
|
||||
#define flushinp()
|
||||
#define initscr()
|
||||
#define clear()
|
||||
#define clrtoeol()
|
||||
|
||||
#define addch(a)
|
||||
#define werase(a)
|
||||
#define wclear(a)
|
||||
#define delwin(a)
|
||||
#define addstr(a)
|
||||
#define touchwin(a)
|
||||
#define idlok(a,b)
|
||||
#define clearok(a,b)
|
||||
#define keypad(a,b)
|
||||
#define leaveok(a,b)
|
||||
#define waddch(a,b)
|
||||
#define waddstr(a,b)
|
||||
#define move(a,b)
|
||||
#define mvwin(a,b,c)
|
||||
#define wmove(a,b,c)
|
||||
#define mvaddch(a,b,c)
|
||||
#define mvaddstr(a,b,c)
|
||||
#define wgetnstr(a,b,c)
|
||||
#define getyx(a,b,c)
|
||||
#define mvcur(a,b,c,d)
|
||||
#define mvwaddch(a,b,c,d)
|
||||
#define mvprintw(...)
|
||||
#define printw(...)
|
||||
#define wprintw(...)
|
||||
#define mvwprintw(...)
|
||||
|
||||
|
||||
#define A_CHARTEXT 0xff
|
||||
#define inch() 0
|
||||
#define endwin() 1
|
||||
#define isendwin() 0
|
||||
#define baudrate() 9600
|
||||
#define killchar() 3
|
||||
#define erasechar() 8
|
||||
#define wclrtoeol(a) 0
|
||||
#define wrefresh(a) 0
|
||||
#define unctrl(a) "^x"
|
||||
#define getmaxx(a) COLS
|
||||
#define getmaxy(a) LINES
|
||||
#define mvinch(a,b) '.'
|
||||
#define mvwinch(a,b,c) 0
|
||||
#define newwin(a,b,c,d) 0
|
||||
#define subwin(a,b,c,d,e) 0
|
||||
|
||||
#endif
|
||||
|
||||
#ifdef LINES
|
||||
#undef LINES
|
||||
@@ -27,6 +109,11 @@
|
||||
#define LINES 24
|
||||
#define COLS 80
|
||||
|
||||
#include "extern.h"
|
||||
|
||||
|
||||
#undef lines
|
||||
|
||||
#define NOOP(x) (x += 0)
|
||||
#define CCHAR(x) ( (char) (x & A_CHARTEXT) )
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user