fixed a few lines for c89
added more http code
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: pio.c 348 2010-08-26 06:26:28Z hyunghwan.chung $
|
||||
* $Id: pio.c 368 2010-11-03 14:24:29Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -91,7 +91,6 @@ qse_pio_t* qse_pio_init (
|
||||
|
||||
int i, minidx = -1, maxidx = -1;
|
||||
|
||||
if (mmgr == QSE_NULL) mmgr = QSE_MMGR_GETDFL();
|
||||
|
||||
#ifdef _WIN32
|
||||
SECURITY_ATTRIBUTES secattr;
|
||||
@ -104,6 +103,8 @@ qse_pio_t* qse_pio_init (
|
||||
qse_pio_pid_t pid;
|
||||
#endif
|
||||
|
||||
if (mmgr == QSE_NULL) mmgr = QSE_MMGR_GETDFL();
|
||||
|
||||
QSE_MEMSET (pio, 0, QSE_SIZEOF(*pio));
|
||||
pio->mmgr = mmgr;
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* $Id: rex.c 348 2010-08-26 06:26:28Z hyunghwan.chung $
|
||||
* $Id: rex.c 368 2010-11-03 14:24:29Z hyunghwan.chung $
|
||||
*
|
||||
Copyright 2006-2009 Chung, Hyung-Hwan.
|
||||
This file is part of QSE.
|
||||
@ -1349,6 +1349,8 @@ static int addsimplecand (
|
||||
exec_t* e, group_t* group, qse_rex_node_t* node,
|
||||
qse_size_t occ, const qse_char_t* mptr)
|
||||
{
|
||||
cand_t cand;
|
||||
|
||||
QSE_ASSERT (
|
||||
node->id == QSE_REX_NODE_NOP ||
|
||||
node->id == QSE_REX_NODE_BOL ||
|
||||
@ -1358,8 +1360,6 @@ static int addsimplecand (
|
||||
node->id == QSE_REX_NODE_CSET
|
||||
);
|
||||
|
||||
cand_t cand;
|
||||
|
||||
cand.node = node;
|
||||
cand.occ = occ;
|
||||
cand.group = group;
|
||||
|
@ -252,9 +252,11 @@ static qse_xma_blk_t* alloc_from_freelist (
|
||||
{
|
||||
if (free->size >= size)
|
||||
{
|
||||
qse_size_t rem;
|
||||
|
||||
detach_from_freelist (xma, free);
|
||||
|
||||
qse_size_t rem = free->size - size;
|
||||
rem = free->size - size;
|
||||
if (rem >= MINBLKLEN)
|
||||
{
|
||||
qse_xma_blk_t* tmp;
|
||||
|
Reference in New Issue
Block a user