version 1.1.2.7, 2012/02/10 23:20:06
|
version 1.2.4.1, 2012/05/23 15:14:41
|
Line 13 int main(int argc, char **argv)
|
Line 13 int main(int argc, char **argv)
|
|
|
inp = io_arrayInit(argc); |
inp = io_arrayInit(argc); |
for (i = 0; i < argc; i++) { |
for (i = 0; i < argc; i++) { |
v = malloc(sizeof(ait_val_t)); | v = io_allocVar(); |
AIT_SET_STR(v, argv[i]); |
AIT_SET_STR(v, argv[i]); |
io_arraySet(inp, i, v); |
io_arraySet(inp, i, v); |
} |
} |
Line 56 int main(int argc, char **argv)
|
Line 56 int main(int argc, char **argv)
|
return 2; |
return 2; |
} |
} |
sess_freeSession(&n); |
sess_freeSession(&n); |
|
for (i = 0; i < io_arraySize(inp); i++) |
|
AIT_FREE_VAL(io_arrayGet(inp, i)); |
io_arrayFree(inp); |
io_arrayFree(inp); |
io_arrayDestroy(&inp); |
io_arrayDestroy(&inp); |
printf("set session"); |
printf("set session"); |
Line 94 int main(int argc, char **argv)
|
Line 96 int main(int argc, char **argv)
|
for (i = 0; i < io_arraySize(inp); i++) |
for (i = 0; i < io_arraySize(inp); i++) |
printf("i=%d->%s\n", i, AIT_GET_STR(io_array(inp, i, ait_val_t*))); |
printf("i=%d->%s\n", i, AIT_GET_STR(io_array(inp, i, ait_val_t*))); |
sess_commitSession(n, inp); |
sess_commitSession(n, inp); |
|
for (i = 0; i < io_arraySize(inp); i++) |
|
AIT_FREE_VAL(io_arrayGet(inp, i)); |
sess_doneSession(n, &inp); |
sess_doneSession(n, &inp); |
sess_freeSession(&n); |
sess_freeSession(&n); |
getchar(); |
getchar(); |
Line 111 int main(int argc, char **argv)
|
Line 115 int main(int argc, char **argv)
|
} |
} |
for (i = 0; i < io_arraySize(inp); i++) |
for (i = 0; i < io_arraySize(inp); i++) |
printf("i=%d->%s\n", i, AIT_GET_STR(io_array(inp, i, ait_val_t*))); |
printf("i=%d->%s\n", i, AIT_GET_STR(io_array(inp, i, ait_val_t*))); |
|
/* |
|
for (i = 0; i < io_arraySize(inp); i++) |
|
AIT_FREE_VAL(io_arrayGet(inp, i)); |
|
*/ |
sess_doneSession(n, &inp); |
sess_doneSession(n, &inp); |
FREE_MEMORY(n); |
FREE_MEMORY(n); |
sess_freeSession(&n); |
sess_freeSession(&n); |
|
|
return 0; |
return 0; |
} |
} |