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:
@@ -1021,13 +1021,15 @@ IrcVariable *return_fset_var(int nummer)
|
||||
}
|
||||
#endif
|
||||
|
||||
/* This is a horrible hack so that the standard List functions can be used
|
||||
* for the numeric list.
|
||||
*/
|
||||
int compare_number(List *item1, List *item2)
|
||||
{
|
||||
if ((int)item1->name == (int)(item2->name))
|
||||
return 0;
|
||||
else if ((int)item1->name > (int)(item2->name))
|
||||
return 1;
|
||||
return -1;
|
||||
FsetNumber *real1 = (FsetNumber *)item1;
|
||||
FsetNumber *real2 = (FsetNumber *)item2;
|
||||
|
||||
return real1->numeric - real2->numeric;
|
||||
}
|
||||
|
||||
char *find_numeric_fset(int numeric)
|
||||
|
||||
Reference in New Issue
Block a user