mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -6,6 +6,8 @@ The following are the changes from calc version 2.14.1.5 to date:
|
|||||||
Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
|
Rename MINGW Makefile variable (a holdover from MINGW32_NT-5.0)
|
||||||
to OSNAME.
|
to OSNAME.
|
||||||
|
|
||||||
|
Fixed FUNCPTR typedef in hist.c to fix deprecated compiler warnings.
|
||||||
|
|
||||||
|
|
||||||
The following are the changes from calc version 2.14.1.3 to 2.14.1.4:
|
The following are the changes from calc version 2.14.1.3 to 2.14.1.4:
|
||||||
|
|
||||||
|
4
hist.c
4
hist.c
@@ -98,7 +98,7 @@ STATIC struct {
|
|||||||
} HS;
|
} HS;
|
||||||
|
|
||||||
|
|
||||||
typedef void (*FUNCPTR)();
|
typedef void (*FUNCPTR)(char *);
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
char *name;
|
char *name;
|
||||||
@@ -218,7 +218,7 @@ STATIC KEY_MAP *cur_map;
|
|||||||
STATIC KEY_MAP *base_map;
|
STATIC KEY_MAP *base_map;
|
||||||
STATIC KEY_ENT key_table[MAX_KEYS];
|
STATIC KEY_ENT key_table[MAX_KEYS];
|
||||||
STATIC HIST* hist_first = NULL;
|
STATIC HIST* hist_first = NULL;
|
||||||
STATIC HIST* hist_last = NULL;
|
STATIC HIST hist_last = NULL;
|
||||||
STATIC char save_buffer[SAVE_SIZE];
|
STATIC char save_buffer[SAVE_SIZE];
|
||||||
|
|
||||||
/* declare other static functions */
|
/* declare other static functions */
|
||||||
|
Reference in New Issue
Block a user