Convert strip_ansi() from unsigned char to char
This required a few careful changes to ensure that the result does the same thing. Also included a few little cleanups in this function.
This commit is contained in:
@@ -296,7 +296,7 @@ extern Function_ptr *global;
|
||||
#define xterm_settitle (*(void (*)(void))global[XTERM_SETTITLE])
|
||||
#define add_wait_prompt (*(void (*)(char *, void (*)(char *, char *), char *, int , int ))global[ADD_WAIT_PROMPT])
|
||||
#define skip_ctl_c_seq (*(char *(*)(const char *, int *, int *, int ))global[SKIP_CTL_C_SEQ])
|
||||
#define strip_ansi (*(unsigned char *(*)(const unsigned char *))global[STRIP_ANSI])
|
||||
#define strip_ansi (*(char *(*)(const char *))global[STRIP_ANSI])
|
||||
#define create_new_screen ((Screen * (*)(void))global[CREATE_NEW_SCREEN])
|
||||
#define create_additional_screen ((Window * (*)(void))global[CREATE_ADDITIONAL_SCREEN])
|
||||
|
||||
|
||||
@@ -59,12 +59,12 @@ Screen * BX_create_new_screen(void);
|
||||
void refresh_window_screen(Window *);
|
||||
#endif
|
||||
|
||||
u_char *BX_strip_ansi (const u_char *);
|
||||
char *normalize_color (int, int, int, int);
|
||||
char *BX_strip_ansi(const char *);
|
||||
char *normalize_color(int, int, int, int);
|
||||
char *BX_skip_ctl_c_seq(const char *, int *, int *, int);
|
||||
char **BX_prepare_display(const char *, int, int *, int);
|
||||
int BX_output_with_count(const char *, int, int);
|
||||
char *BX_skip_incoming_mirc (char *);
|
||||
char *BX_skip_incoming_mirc(char *);
|
||||
|
||||
/* Dont do any word-wrapping, just truncate each line at its place. */
|
||||
#define PREPARE_NOWRAP 0x01
|
||||
|
||||
Reference in New Issue
Block a user