[rogueclone-cvs] rogue/src curses.c, 1.11.2.6, 1.11.2.7 rogue.h, 1.9.2.6, 1.9.2.7
Brought to you by:
mlehotay
From: Michael L. <mle...@us...> - 2009-01-02 22:11:37
|
Update of /cvsroot/rogueclone/rogue/src In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv31910 Modified Files: Tag: curses curses.c rogue.h Log Message: stubs for standard curses functions Index: rogue.h =================================================================== RCS file: /cvsroot/rogueclone/rogue/src/rogue.h,v retrieving revision 1.9.2.6 retrieving revision 1.9.2.7 diff -C2 -d -r1.9.2.6 -r1.9.2.7 *** rogue.h 2 Jan 2009 20:58:36 -0000 1.9.2.6 --- rogue.h 2 Jan 2009 22:11:29 -0000 1.9.2.7 *************** *** 605,610 **** int addch(const chtype ch); int addstr(const char *str); ! int attroff(chtype); ! int attron(chtype); int clear(void); int clrtoeol(void); --- 605,610 ---- int addch(const chtype ch); int addstr(const char *str); ! int attroff(chtype attrs); ! int attron(chtype attrs); int clear(void); int clrtoeol(void); *************** *** 626,631 **** int standout(void); int start_color(void); ! int wgetch(WINDOW *); ! int wrefresh(WINDOW *); #endif --- 626,631 ---- int standout(void); int start_color(void); ! int wgetch(WINDOW *win); ! int wrefresh(WINDOW *win); #endif Index: curses.c =================================================================== RCS file: /cvsroot/rogueclone/rogue/src/curses.c,v retrieving revision 1.11.2.6 retrieving revision 1.11.2.7 diff -C2 -d -r1.11.2.6 -r1.11.2.7 *** curses.c 2 Jan 2009 20:58:36 -0000 1.11.2.6 --- curses.c 2 Jan 2009 22:11:29 -0000 1.11.2.7 *************** *** 69,75 **** */ - #ifdef ROGUECURSES - #include "rogue.h" #include <stdio.h> --- 69,108 ---- */ #include "rogue.h" + + int LINES=DROWS; /* terminal height */ + int COLS=DCOLS; /* terminal width */ + WINDOW *stdscr; /* the default screen window */ + WINDOW *curscr; /* the current screen image */ + + /* stubs for now */ + int addch(const chtype ch) {return 0;}; + int addstr(const char *str) {return 0;}; + int attroff(chtype attrs) {return 0;}; + int attron(chtype attrs) {return 0;}; + int clear(void) {return 0;}; + int clrtoeol(void) {return 0;}; + int crmode(void) {return 0;}; + int def_prog_mode(void) {return 0;}; + int endwin(void) {return 0;}; + bool has_colors(void) {return 0;}; + int init_pair(short pair, short f, short b) {return 0;}; + WINDOW *initscr(void) {return 0;}; + int move(int row, int col) {return 0;}; + int mvaddch(int row, int col, const chtype ch) {return 0;}; + int mvaddchnstr(int y, int x, const chtype *chstr, int n) {return 0;}; + int mvaddstr(int row, int col, const char *str) {return 0;}; + chtype mvinch(int row, int col) {return 0;}; + int noecho(void) {return 0;}; + int nonl(void) {return 0;}; + int refresh(void) {return 0;}; + int standend(void) {return 0;}; + int standout(void) {return 0;}; + int start_color(void) {return 0;}; + int wgetch(WINDOW *win) {return 0;}; + int wrefresh(WINDOW *win) {return 0;}; + + #ifdef OLDROGUECURSES + #include <stdio.h> *************** *** 97,104 **** /* ============== CONSTANTS AND TYPEDEFS =============== */ - /* ================== GLOBAL VARIABLES ================== */ - - int LINES=DROWS, COLS=DCOLS; - /* ================= PRIVATE PROTOTYPES ================= */ --- 130,133 ---- *************** *** 804,806 **** } ! #endif /* ROGUECURSES */ --- 833,835 ---- } ! #endif /* OLDROGUECURSES */ |