Clean up function move_to_abs_word() and rename to move_to_word()
Remove the output argument, as it's the same as the function return value anyway, so the callers should just use that.
This commit is contained in:
@@ -133,7 +133,7 @@ char * base64_encode (const void *data, size_t size);
|
||||
#define SOS -32767
|
||||
#define EOS 32767
|
||||
char *BX_strsearch (register char *, char *, char *, int);
|
||||
char *BX_move_to_abs_word (const register char *, char **, int);
|
||||
char *BX_move_to_word (const char *, int);
|
||||
char *BX_move_word_rel (const char *, char **, int);
|
||||
char *BX_extract (char *, int, int);
|
||||
char *BX_extract2 (const char *, int, int);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
* if we change the table below, we change this module number to the
|
||||
* current date (YYYYMMDDxx where xx is a serial number).
|
||||
*/
|
||||
#define MODULE_VERSION 2017110602UL
|
||||
#define MODULE_VERSION 2017111401UL
|
||||
|
||||
#include "struct.h"
|
||||
|
||||
@@ -201,7 +201,7 @@ enum FUNCTION_VALUE
|
||||
|
||||
/* words.c */
|
||||
STRSEARCH,
|
||||
MOVE_TO_ABS_WORD,
|
||||
MOVE_TO_WORD,
|
||||
MOVE_WORD_REL,
|
||||
EXTRACT,
|
||||
EXTRACT2,
|
||||
|
||||
@@ -200,7 +200,7 @@ extern Function_ptr *global;
|
||||
|
||||
/* words.c reg.c */
|
||||
#define strsearch (*(char *(*)(char *, char *, char *, int ))global[STRSEARCH])
|
||||
#define move_to_abs_word (*(char *(*)(const char *, char **, int ))global[MOVE_TO_ABS_WORD])
|
||||
#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])
|
||||
#define extract2 (*(char *(*)(const char *, int , int ))global[EXTRACT2])
|
||||
|
||||
Reference in New Issue
Block a user