version 1.16.2.2, 2012/03/29 12:23:00
|
version 1.16.2.3, 2012/04/02 08:08:09
|
Line 166 typedef struct {
|
Line 166 typedef struct {
|
} } while (0) |
} } while (0) |
#define AIT_SET_STRCAT(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); \ |
#define AIT_SET_STRCAT(_vl, _v) do { ait_val_t *__val = (_vl); assert(__val); \ |
assert(AIT_TYPE(__val) == string); \ |
assert(AIT_TYPE(__val) == string); \ |
void *__p = realloc(AIT_LEN(__val) + strlen((_v))); \ | void *__p = realloc(__val->val.string, \ |
| AIT_LEN(__val) + strlen((_v))); \ |
if (__p) { \ |
if (__p) { \ |
__val->val.string = __p; \ |
__val->val.string = __p; \ |
AIT_LEN(__val) += strlen((_v)); \ |
AIT_LEN(__val) += strlen((_v)); \ |