--- libaitio/example/test_sess.c 2013/03/19 17:12:52 1.2.2.2 +++ libaitio/example/test_sess.c 2013/03/19 17:16:37 1.2.2.4 @@ -48,24 +48,24 @@ int main() // sess_SetValue(n, "piuk_gniah++", "mryyynnnnn"); printf(">>> String=%s\n", n->sess_addr); getchar(); - printf("12345678 Define? %d\n", ISDEF(sess_GetValue(n, "12345678", &v))); + printf("12345678 Define? %d\n", SESS_RET_DEF(sess_GetValue(n, "12345678", &v))); ait_freeVar(&v); - printf("111 Define? %d\n", ISDEF(sess_SetValue(n, "111", "321"))); - printf("88 Define? %d\n", ISDEF(sess_GetValue(n, "88", &v))); + printf("111 Define? %d\n", SESS_RET_DEF(sess_SetValue(n, "111", "321"))); + printf("88 Define? %d\n", SESS_RET_DEF(sess_GetValue(n, "88", &v))); ait_freeVar(&v); - printf("222 find=%d value=%s vlen=%d\n", ISDEF(sess_SetValue(n, "222", NULL))); - printf("12345678 find=%d value=%s vlen=%d\n", sess_GetValue(n, "12345678", &v), AIT_GET_STR(v)); + printf("222 find=%d value=%s vlen=%d\n", SESS_RET_DEF(sess_SetValue(n, "222", NULL))); + printf("12345678 find=%d value=%s\n", sess_GetValue(n, "12345678", &v), AIT_GET_STR(v)); ait_freeVar(&v); - printf("111 find=%d value=%s vlen=%d\n", sess_GetValue(n, "111", &v), AIT_GET_STR(v)); + printf("111 find=%d value=%s\n", sess_GetValue(n, "111", &v), AIT_GET_STR(v)); ait_freeVar(&v); - printf("222 find=%d value=%s vlen=%d\n", ISDEF(sess_GetValue(n, "222", &v)), AIT_GET_STR(v)); + printf("222 find=%d value=%s\n", SESS_RET_DEF(sess_GetValue(n, "222", &v)), AIT_GET_STR(v)); ait_freeVar(&v); - printf("000 find=%d value=%s vlen=%d\n", sess_GetValue(n, "000", &v), AIT_GET_STR(v)); + printf("000 find=%d value=%s\n", sess_GetValue(n, "000", &v), AIT_GET_STR(v)); ait_freeVar(&v); - printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); + printf("00 find=%d value=%s\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); ait_freeVar(&v); - printf("insert Result?%d\n", ISNEW(sess_SetValue(n, "789", "Gniah40"))); - printf("00 find=%d value=%s vlen=%d\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); + printf("insert Result?%d\n", SESS_RET_NEW(sess_SetValue(n, "789", "Gniah40"))); + printf("00 find=%d value=%s\n", sess_GetValue(n, "00", &v), AIT_GET_STR(v)); ait_freeVar(&v); printf(">>> String=%s\n", n->sess_addr); printf("update Result=%d\n", sess_SetValue(n, "789", NULL));