tconst modifiers added to the char * arguments to mvaddstr and addstr. - vaccinewars - be a doctor and try to vaccinate the world (HTM) git clone git://src.adamsgaard.dk/vaccinewars (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit d355b4d3086007c63182934184b463a1a242a2d3 (DIR) parent 8ba6e68e52bd90f96ec514ef8050156bff11b520 (HTM) Author: Ben Webb <ben@salilab.org> Date: Thu, 12 Sep 2002 09:27:57 +0000 const modifiers added to the char * arguments to mvaddstr and addstr. Diffstat: M src/cursesport/cursesport.c | 4 ++-- M src/cursesport/cursesport.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) --- (DIR) diff --git a/src/cursesport/cursesport.c b/src/cursesport/cursesport.c t@@ -182,7 +182,7 @@ void attrset(WORD newAttr) CurAttr = newAttr; } -void addstr(char *str) +void addstr(const char *str) { int i; t@@ -208,7 +208,7 @@ void addch(int ch) } } -void mvaddstr(int y, int x, char *str) +void mvaddstr(int y, int x, const char *str) { move(y, x); addstr(str); (DIR) diff --git a/src/cursesport/cursesport.h b/src/cursesport/cursesport.h t@@ -77,9 +77,9 @@ void curs_set(BOOL visible); void endwin(void); void move(int y, int x); void attrset(WORD newAttr); -void addstr(char *str); +void addstr(const char *str); void addch(int ch); -void mvaddstr(int x, int y, char *str); +void mvaddstr(int x, int y, const char *str); void mvaddch(int x, int y, int ch); #define erase() clear_screen()