Far-reaching changes to make BitchX compatible with 64 bit architectures

like x86-64, where sizeof(int) != sizeof (void *).  This involves correctly
casting every function pointer from the global table to the correct
function type, which has the added benefit of allowing type-checking of
function arguments and return values.


git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@26 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2008-04-30 13:57:56 +00:00
parent 7eac4a00ce
commit 3de93b1dbc
34 changed files with 660 additions and 710 deletions

View File

@@ -1189,7 +1189,7 @@ BUILT_IN_KEYBINDING(send_line)
if (!(cmdchar = get_string_var(CMDCHARS_VAR)))
cmdchar = "/";
malloc_strcpy(&tmp, line);
if (line && (*line != *cmdchar) && get_int_var(NICK_COMPLETION_VAR) && !query_nick())
if (line && (*line != *cmdchar) && get_int_var(NICK_COMPLETION_VAR) && !current_window->query_nick)
{
char auto_comp_char;
char *p;
@@ -1319,7 +1319,7 @@ BUILT_IN_KEYBINDING(type_text)
*/
BUILT_IN_KEYBINDING(clear_screen)
{
hold_mode(NULL, OFF, 1);
set_hold_mode(NULL, OFF, 1);
clear_window_by_refnum(0);
}
@@ -1721,7 +1721,7 @@ BUILT_IN_KEYBINDING(cpu_saver_on)
BUILT_IN_KEYBINDING(input_unclear_screen)
{
hold_mode(NULL, OFF, 1);
set_hold_mode(NULL, OFF, 1);
unclear_window_by_refnum(0);
}
@@ -2702,7 +2702,7 @@ do_more_tab:
{
char **completes = NULL;
int c = 0, matches = count;
completes = RESIZE(completes, char *, count+1);
RESIZE(completes, char *, count+1);
if (wcount > 1)
{
if (!got_space)