This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: Awk.cpp 312 2008-08-02 13:40:04Z baconevi $
|
||||
* $Id: Awk.cpp 341 2008-08-20 10:58:19Z baconevi $
|
||||
*/
|
||||
|
||||
#include <ase/awk/StdAwk.hpp>
|
||||
@ -381,7 +381,7 @@ protected:
|
||||
if (fp == NULL) return -1;
|
||||
|
||||
ConTrack* t = (ConTrack*)
|
||||
ase_awk_malloc (awk, ASE_SIZEOF(ConTrack));
|
||||
ase_awk_alloc (awk, ASE_SIZEOF(ConTrack));
|
||||
if (t == ASE_NULL)
|
||||
{
|
||||
if (fp != stdin && fp != stdout) fclose (fp);
|
||||
|
@ -1,12 +1,12 @@
|
||||
/*
|
||||
* $Id: awk.c 337 2008-08-20 09:17:25Z baconevi $
|
||||
* $Id: awk.c 341 2008-08-20 10:58:19Z baconevi $
|
||||
*/
|
||||
|
||||
#include <ase/awk/awk.h>
|
||||
#include <ase/cmn/sll.h>
|
||||
#include <ase/cmn/mem.h>
|
||||
#include <ase/cmn/chr.h>
|
||||
|
||||
#include <ase/utl/helper.h>
|
||||
#include <ase/utl/getopt.h>
|
||||
#include <ase/utl/stdio.h>
|
||||
#include <ase/utl/main.h>
|
||||
@ -1099,7 +1099,7 @@ static void init_extension (ase_awk_t* awk)
|
||||
|
||||
ext->mmgr = *ase_awk_getmmgr(awk);
|
||||
ase_awk_setmmgr (awk, &ext->mmgr);
|
||||
ase_awk_setccls (awk, ASE_GETCCLS());
|
||||
ase_awk_setccls (awk, ASE_CCLS_GETDFL());
|
||||
|
||||
ext->prmfns.pow = custom_awk_pow;
|
||||
ext->prmfns.sprintf = custom_awk_sprintf;
|
||||
|
@ -4,14 +4,13 @@
|
||||
|
||||
#include <ase/tgp/tgp.h>
|
||||
|
||||
#include <ase/utl/ctype.h>
|
||||
#include <ase/utl/stdio.h>
|
||||
#include <ase/utl/main.h>
|
||||
#include <ase/utl/getopt.h>
|
||||
#include <ase/cmn/mem.h>
|
||||
#include <ase/cmn/chr.h>
|
||||
#include <ase/cmn/str.h>
|
||||
|
||||
#include <ase/utl/helper.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@ -153,7 +152,7 @@ static int io_out (int cmd, void* arg, ase_char_t* buf, int len)
|
||||
return 0;
|
||||
|
||||
case ASE_TGP_IO_WRITE:
|
||||
ase_fprintf (xout->fp, "%.*s", len, buf);
|
||||
ase_fprintf (xout->fp, ASE_T("%.*s"), len, buf);
|
||||
return len;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user