This commit is contained in:
parent
b363d651b1
commit
cca74dbaf7
@ -1039,13 +1039,8 @@ extension_t;
|
|||||||
static void* fuser (void* org, void* space)
|
static void* fuser (void* org, void* space)
|
||||||
{
|
{
|
||||||
extension_t* ext = (extension_t*)space;
|
extension_t* ext = (extension_t*)space;
|
||||||
|
/* remember the memory manager into the extension */
|
||||||
ext->mmgr = *(ase_mmgr_t*)org;
|
ext->mmgr = *(ase_mmgr_t*)org;
|
||||||
|
|
||||||
ext->prmfns.pow = custom_awk_pow;
|
|
||||||
ext->prmfns.sprintf = custom_awk_sprintf;
|
|
||||||
ext->prmfns.dprintf = custom_awk_dprintf;
|
|
||||||
ext->prmfns.custom_data = ASE_NULL;
|
|
||||||
|
|
||||||
return &ext->mmgr;
|
return &ext->mmgr;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1120,8 +1115,13 @@ static int awk_main (int argc, ase_char_t* argv[])
|
|||||||
|
|
||||||
app_awk = awk;
|
app_awk = awk;
|
||||||
|
|
||||||
extension = (extension_t*) ase_awk_getextension (awk);
|
|
||||||
ase_awk_setccls (awk, ASE_GETCCLS());
|
ase_awk_setccls (awk, ASE_GETCCLS());
|
||||||
|
|
||||||
|
extension = (extension_t*) ase_awk_getextension (awk);
|
||||||
|
extension->prmfns.pow = custom_awk_pow;
|
||||||
|
extension->prmfns.sprintf = custom_awk_sprintf;
|
||||||
|
extension->prmfns.dprintf = custom_awk_dprintf;
|
||||||
|
extension->prmfns.custom_data = ASE_NULL;
|
||||||
ase_awk_setprmfns (awk, &extension->prmfns);
|
ase_awk_setprmfns (awk, &extension->prmfns);
|
||||||
|
|
||||||
if (ase_awk_addfunc (awk,
|
if (ase_awk_addfunc (awk,
|
||||||
|
Loading…
Reference in New Issue
Block a user