From bba63e00acce7eeb4f61856b3bc0468022211c0f Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 16 Aug 2006 15:21:17 +0000 Subject: [PATCH] *** empty log message *** --- ase/awk/rex.c | 8 +++++--- ase/test/awk/xptestawk.dsp | 3 +-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ase/awk/rex.c b/ase/awk/rex.c index 7ea1f6dc..054fad6a 100644 --- a/ase/awk/rex.c +++ b/ase/awk/rex.c @@ -1,5 +1,5 @@ /* - * $Id: rex.c,v 1.22 2006-08-16 11:35:53 bacon Exp $ + * $Id: rex.c,v 1.23 2006-08-16 15:21:17 bacon Exp $ */ #include @@ -10,6 +10,7 @@ #include #endif + enum { CT_EOF, @@ -53,6 +54,7 @@ enum #pragma warning (disable: 4296) #endif +#define DEF_CODE_CAPA 512 #define BOUND_MIN 0 #define BOUND_MAX (XP_TYPE_MAX(xp_size_t)) @@ -252,7 +254,7 @@ void* xp_awk_safebuildrex ( { __builder_t builder; - builder.code.capa = 512; + builder.code.capa = DEF_CODE_CAPA; builder.code.size = 0; builder.code.buf = (xp_byte_t*) xp_malloc (builder.code.capa); if (builder.code.buf == XP_NULL) @@ -883,7 +885,7 @@ static int __add_code (__builder_t* builder, void* data, xp_size_t len) xp_size_t capa = builder->code.capa * 2; xp_byte_t* tmp; - if (capa == 0) capa = 256; + if (capa == 0) capa = DEF_CODE_CAPA; while (len > capa - builder->code.size) { capa = capa * 2; } #ifndef XP_AWK_NTDDK diff --git a/ase/test/awk/xptestawk.dsp b/ase/test/awk/xptestawk.dsp index 6b042cd9..0e864530 100644 --- a/ase/test/awk/xptestawk.dsp +++ b/ase/test/awk/xptestawk.dsp @@ -67,7 +67,6 @@ LINK32=link.exe # PROP Target_Dir "" # ADD BASE CPP /nologo /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /YX /FD /GZ /c # ADD CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /I "..\..\.." /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_UNICODE" /D "__STAND_ALONE" /FR /YX /FD /GZ /c -# SUBTRACT CPP /FA # ADD BASE RSC /l 0x409 /d "_DEBUG" # ADD RSC /l 0x409 /d "_DEBUG" BSC32=bscmake.exe @@ -88,7 +87,7 @@ LINK32=link.exe # PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" # Begin Source File -SOURCE=.\awk.c +SOURCE=.\rex3.c # End Source File # End Group # Begin Group "Header Files"