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:
@@ -743,7 +743,7 @@ void destroy_arglist (ArgList *arglist)
|
||||
new_free(&arglist->vars[i]);
|
||||
new_free(&arglist->defaults[i]);
|
||||
}
|
||||
new_free((char **)&arglist);
|
||||
new_free(&arglist);
|
||||
}
|
||||
|
||||
void prepare_alias_call (void *al, char **stuff)
|
||||
@@ -1707,7 +1707,7 @@ char ** glob_cmd_alias (char *name, int *howmany)
|
||||
|
||||
len = strlen(name);
|
||||
*howmany = 0;
|
||||
matches = RESIZE(matches, char *, matches_size);
|
||||
RESIZE(matches, char *, matches_size);
|
||||
|
||||
for (cnt = 0; cnt < cmd_alias.max; cnt++)
|
||||
{
|
||||
@@ -1749,7 +1749,7 @@ char ** glob_assign_alias (char *name, int *howmany)
|
||||
|
||||
len = strlen(name);
|
||||
*howmany = 0;
|
||||
matches = RESIZE(matches, char *, matches_size);
|
||||
RESIZE(matches, char *, matches_size);
|
||||
|
||||
for (cnt = 0; cnt < var_alias.max; cnt++)
|
||||
{
|
||||
@@ -1790,7 +1790,7 @@ char ** pmatch_cmd_alias (char *name, int *howmany)
|
||||
|
||||
len = strlen(name);
|
||||
*howmany = 0;
|
||||
matches = RESIZE(matches, char *, matches_size);
|
||||
RESIZE(matches, char *, matches_size);
|
||||
|
||||
for (cnt = 0; cnt < cmd_alias.max; cnt++)
|
||||
{
|
||||
@@ -1826,7 +1826,7 @@ char ** pmatch_assign_alias (char *name, int *howmany)
|
||||
|
||||
len = strlen(name);
|
||||
*howmany = 0;
|
||||
matches = RESIZE(matches, char *, matches_size);
|
||||
RESIZE(matches, char *, matches_size);
|
||||
|
||||
for (cnt = 0; cnt < var_alias.max; cnt++)
|
||||
{
|
||||
@@ -1873,7 +1873,7 @@ char ** get_subarray_elements (char *root, int *howmany, int type)
|
||||
|
||||
len = strlen(root);
|
||||
*howmany = 0;
|
||||
matches = RESIZE(matches, char *, matches_size);
|
||||
RESIZE(matches, char *, matches_size);
|
||||
for (cnt = 0; cnt < as->max; cnt++)
|
||||
{
|
||||
len2 = strlen(as->list[cnt]->name);
|
||||
|
||||
Reference in New Issue
Block a user