mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* 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:
parent
9eadb2ada4
commit
166e1d20de
@ -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>
|
||||
|
||||
|
@ -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) {
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user