Convert strsearch() arguments to const char *

Also clean up the implementation a little.
This commit is contained in:
Kevin Easton
2017-11-17 15:47:33 +11:00
parent e8ce5fb973
commit eb6ffc7395
3 changed files with 39 additions and 30 deletions

View File

@@ -199,7 +199,7 @@ extern Function_ptr *global;
/* words.c reg.c */
#define strsearch (*(char *(*)(char *, char *, char *, int ))global[STRSEARCH])
#define strsearch (*(char *(*)(const char *, const char *, const char *, int ))global[STRSEARCH])
#define move_to_word (*(char *(*)(const char *, int))global[MOVE_TO_WORD])
#define move_word_rel (*(char *(*)(const char *, char **, int ))global[MOVE_WORD_REL])
#define extract (*(char *(*)(char *, int , int ))global[EXTRACT])