version 1.10.2.3, 2012/08/30 14:16:51
|
version 1.10.2.4, 2012/09/17 14:17:12
|
Line 172 cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg)
|
Line 172 cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg)
|
if (*szSection) { |
if (*szSection) { |
AIT_SET_STR(&av->cfg_sec, szSection); |
AIT_SET_STR(&av->cfg_sec, szSection); |
AIT_KEY(&av->cfg_sec) = crcFletcher16(AIT_GET_LIKE(&av->cfg_sec, u_short*), |
AIT_KEY(&av->cfg_sec) = crcFletcher16(AIT_GET_LIKE(&av->cfg_sec, u_short*), |
io_align(AIT_LEN(&av->cfg_sec) - 1, 1) / 2); | io_align(AIT_LEN(&av->cfg_sec) - 1, 2) / 2); |
} |
} |
|
|
io_RTrimStr(psAttr); |
io_RTrimStr(psAttr); |
Line 182 cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg)
|
Line 182 cfgReadConfig(FILE *f, cfg_root_t * __restrict cfg)
|
AIT_SET_STR(&av->cfg_val, psVal); |
AIT_SET_STR(&av->cfg_val, psVal); |
AIT_SET_STR(&av->cfg_attr, psAttr); |
AIT_SET_STR(&av->cfg_attr, psAttr); |
AIT_KEY(&av->cfg_attr) = crcFletcher16(AIT_GET_LIKE(&av->cfg_attr, u_short*), |
AIT_KEY(&av->cfg_attr) = crcFletcher16(AIT_GET_LIKE(&av->cfg_attr, u_short*), |
io_align(AIT_LEN(&av->cfg_attr) - 1, 1) / 2); | io_align(AIT_LEN(&av->cfg_attr) - 1, 2) / 2); |
|
|
CFG_RC_LOCK(cfg); |
CFG_RC_LOCK(cfg); |
RB_INSERT(tagRC, cfg, av); |
RB_INSERT(tagRC, cfg, av); |
Line 406 cfgReadLines(FILE *f, const char *delim, const char *e
|
Line 406 cfgReadLines(FILE *f, const char *delim, const char *e
|
if (psSec) { |
if (psSec) { |
AIT_SET_STR(&av->cfg_sec, psSec); |
AIT_SET_STR(&av->cfg_sec, psSec); |
AIT_KEY(&av->cfg_sec) = crcFletcher16(AIT_GET_LIKE(&av->cfg_sec, u_short*), |
AIT_KEY(&av->cfg_sec) = crcFletcher16(AIT_GET_LIKE(&av->cfg_sec, u_short*), |
io_align(AIT_LEN(&av->cfg_sec) - 1, 1) / 2); | io_align(AIT_LEN(&av->cfg_sec) - 1, 2) / 2); |
} |
} |
if (psVal) |
if (psVal) |
AIT_SET_STR(&av->cfg_val, psVal); |
AIT_SET_STR(&av->cfg_val, psVal); |
AIT_SET_STR(&av->cfg_attr, psAttr); |
AIT_SET_STR(&av->cfg_attr, psAttr); |
AIT_KEY(&av->cfg_attr) = crcFletcher16(AIT_GET_LIKE(&av->cfg_attr, u_short*), |
AIT_KEY(&av->cfg_attr) = crcFletcher16(AIT_GET_LIKE(&av->cfg_attr, u_short*), |
io_align(AIT_LEN(&av->cfg_attr) - 1, 1) / 2); | io_align(AIT_LEN(&av->cfg_attr) - 1, 2) / 2); |
|
|
CFG_RC_LOCK(cfg); |
CFG_RC_LOCK(cfg); |
/* find & delete duplicates */ |
/* find & delete duplicates */ |