* win.h: Removed a const qualifier from the type movefn, as these

functions typically modify their object.
	* win.c: Likewise.
This commit is contained in:
Roland Illig 2005-05-21 10:51:15 +00:00
parent 9eadb2ada4
commit 166e1d20de
3 changed files with 6 additions and 3 deletions

View File

@ -9,6 +9,9 @@
used in hexview mode, too.
* view.c (view_labels): Simplified the code that decides whether
the user can switch to hexedit mode.
* win.h: Removed a const qualifier from the type movefn, as these
functions typically modify their object.
* win.c: Likewise.
2005-05-20 Pavel Roskin <proski@gnu.org>

View File

@ -41,7 +41,7 @@
* the key was handled, 0 otherwise.
*/
int
check_movement_keys (int key, int page_size, const void *data, movefn backfn,
check_movement_keys (int key, int page_size, void *data, movefn backfn,
movefn forfn, movefn topfn, movefn bottomfn)
{
switch (key) {

View File

@ -2,8 +2,8 @@
#define MC_WIN_H
/* Keys management */
typedef void (*movefn) (const void *, int);
int check_movement_keys (int key, int page_size, const void *data, movefn backfn,
typedef void (*movefn) (void *, int);
int check_movement_keys (int key, int page_size, void *data, movefn backfn,
movefn forfn, movefn topfn, movefn bottomfn);
int lookup_key (char *keyname);