[pypy-commit] cffi default: Turn off a warning: on my machine at least, keyname() is documented

arigo noreply at buildbot.pypy.org
Sat Jul 28 13:13:39 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r734:d645fd803043
Date: 2012-07-28 13:13 +0200
http://bitbucket.org/cffi/cffi/changeset/d645fd803043/

Log:	Turn off a warning: on my machine at least, keyname() is documented
	as returning a "char *" but really returns a "const char *".

diff --git a/demo/_curses.py b/demo/_curses.py
--- a/demo/_curses.py
+++ b/demo/_curses.py
@@ -17,7 +17,7 @@
 int endwin(void);
 bool isendwin(void);
 
-char *keyname(int c);
+const char *keyname(int c);
 static const int KEY_MIN, KEY_MAX;
 
 int setupterm(char *term, int fildes, int *errret);


More information about the pypy-commit mailing list