[pypy-commit] pypy curses_cffi: Fixes the warnings -- and in one case the warning is important -- for

arigo noreply at buildbot.pypy.org
Fri Mar 29 23:52:25 CET 2013


Author: Armin Rigo <arigo at tunes.org>
Branch: curses_cffi
Changeset: r62882:7ea81f936741
Date: 2013-03-29 23:52 +0100
http://bitbucket.org/pypy/pypy/changeset/7ea81f936741/

Log:	Fixes the warnings -- and in one case the warning is important --
	for running on Linux.

diff --git a/lib_pypy/_curses.py b/lib_pypy/_curses.py
--- a/lib_pypy/_curses.py
+++ b/lib_pypy/_curses.py
@@ -12,7 +12,7 @@
 typedef ... SCREEN;
 typedef unsigned long mmask_t;
 typedef unsigned char bool;
-typedef unsigned int chtype;
+typedef unsigned long chtype;
 typedef chtype attr_t;
 
 typedef struct
@@ -121,7 +121,7 @@
 bool isendwin(void);
 bool is_linetouched(WINDOW *, int);
 bool is_wintouched(WINDOW *);
-char * keyname(int);
+const char * keyname(int);
 int keypad(WINDOW *, bool);
 char killchar(void);
 int leaveok(WINDOW *, bool);
@@ -227,7 +227,7 @@
 int tigetnum(char *);
 char * tigetstr(char *);
 int putp(const char *);
-char * tparm(char *, ...);
+char * tparm(const char *, ...);
 int getattrs(const WINDOW *);
 int getcurx(const WINDOW *);
 int getcury(const WINDOW *);
@@ -245,7 +245,7 @@
 int mouseinterval(int);
 
 void setsyx(int y, int x);
-char *unctrl(chtype);
+const char *unctrl(chtype);
 int use_default_colors(void);
 
 int has_key(int);
@@ -273,7 +273,7 @@
 PANEL *panel_above(const PANEL *);
 PANEL *panel_below(const PANEL *);
 int set_panel_userptr(PANEL *, void *);
-void *panel_userptr(const PANEL *);
+const void *panel_userptr(const PANEL *);
 int move_panel(PANEL *, int, int);
 int replace_panel(PANEL *,WINDOW *);
 int panel_hidden(const PANEL *);


More information about the pypy-commit mailing list