ini_file_reader.c change PJWHash to Time33Hash and increase capacity
parent
e879393c88
commit
d884069622
3
HISTORY
3
HISTORY
|
|
@ -1,4 +1,7 @@
|
||||||
|
|
||||||
|
Version 1.17 2015-07-13
|
||||||
|
* ini_file_reader.c change PJWHash to Time33Hash and increase capacity
|
||||||
|
|
||||||
Version 1.16 2015-07-01
|
Version 1.16 2015-07-01
|
||||||
* fast_mblock add fast_mblock_delay_free
|
* fast_mblock add fast_mblock_delay_free
|
||||||
* add fast_mpool.h and fast_mpool.c
|
* add fast_mpool.h and fast_mpool.c
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
#include "ini_file_reader.h"
|
#include "ini_file_reader.h"
|
||||||
|
|
||||||
#define _LINE_BUFFER_SIZE 512
|
#define _LINE_BUFFER_SIZE 512
|
||||||
#define _ALLOC_ITEMS_ONCE 8
|
#define _ALLOC_ITEMS_ONCE 32
|
||||||
|
|
||||||
static int iniDoLoadFromFile(const char *szFilename, \
|
static int iniDoLoadFromFile(const char *szFilename, \
|
||||||
IniContext *pContext);
|
IniContext *pContext);
|
||||||
|
|
@ -38,7 +38,7 @@ static int iniInitContext(IniContext *pContext)
|
||||||
|
|
||||||
memset(pContext, 0, sizeof(IniContext));
|
memset(pContext, 0, sizeof(IniContext));
|
||||||
pContext->current_section = &pContext->global;
|
pContext->current_section = &pContext->global;
|
||||||
if ((result=hash_init(&pContext->sections, PJWHash, 10, 0.75)) != 0)
|
if ((result=hash_init(&pContext->sections, Time33Hash, 32, 0.75)) != 0)
|
||||||
{
|
{
|
||||||
logError("file: "__FILE__", line: %d, " \
|
logError("file: "__FILE__", line: %d, " \
|
||||||
"hash_init fail, errno: %d, error info: %s", \
|
"hash_init fail, errno: %d, error info: %s", \
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue