*** empty log message ***

This commit is contained in:
hyung-hwan 2006-08-16 15:21:17 +00:00
parent 6ce0292ba0
commit bba63e00ac
2 changed files with 6 additions and 5 deletions

View File

@ -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 <xp/awk/awk_i.h>
@ -10,6 +10,7 @@
#include <xp/bas/ctype.h>
#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

View File

@ -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<none>
# 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"