Don't treat xfree as a real function (taking its address), as this doesn't work

if dmalloc is enabled.

svn path=/trunk/yasm/; revision=770
This commit is contained in:
Peter Johnson 2002-10-21 05:01:30 +00:00
parent 53f6123eaf
commit 3adada2a00
2 changed files with 14 additions and 2 deletions

View file

@ -393,6 +393,12 @@ bin_objfmt_sections_switch(sectionhead *headp, valparamhead *valparams,
return NULL;
}
static void
bin_objfmt_section_data_delete(/*@only@*/ void *d)
{
xfree(d);
}
static void
bin_objfmt_common_declare(/*@unused@*/ symrec *sym, /*@only@*/ expr *size,
/*@unused@*/ /*@null@*/
@ -454,7 +460,7 @@ objfmt yasm_bin_LTX_objfmt = {
bin_objfmt_output,
bin_objfmt_cleanup,
bin_objfmt_sections_switch,
xfree,
bin_objfmt_section_data_delete,
bin_objfmt_section_data_print,
NULL /*bin_objfmt_extern_declare*/,
NULL /*bin_objfmt_global_declare*/,

View file

@ -393,6 +393,12 @@ bin_objfmt_sections_switch(sectionhead *headp, valparamhead *valparams,
return NULL;
}
static void
bin_objfmt_section_data_delete(/*@only@*/ void *d)
{
xfree(d);
}
static void
bin_objfmt_common_declare(/*@unused@*/ symrec *sym, /*@only@*/ expr *size,
/*@unused@*/ /*@null@*/
@ -454,7 +460,7 @@ objfmt yasm_bin_LTX_objfmt = {
bin_objfmt_output,
bin_objfmt_cleanup,
bin_objfmt_sections_switch,
xfree,
bin_objfmt_section_data_delete,
bin_objfmt_section_data_print,
NULL /*bin_objfmt_extern_declare*/,
NULL /*bin_objfmt_global_declare*/,