|
|
@ -25,12 +25,12 @@ void test_exs()
|
|
|
|
|
|
|
|
|
|
|
|
exs_nappendc(test, 'A', 6);
|
|
|
|
exs_nappendc(test, 'A', 6);
|
|
|
|
|
|
|
|
|
|
|
|
exs_appendf(test, "\nCurrent size: %d -> %d", strlen(EXS(test)), exs_realsize(test));
|
|
|
|
exs_appendf(test, "\nCurrent size: %ld -> %ld", strlen(EXS(test)), exs_realsize(test));
|
|
|
|
exs_appendf(test, "AOISDJOAIJS%s", "sokdok");
|
|
|
|
exs_appendf(test, "AOISDJOAIJS%s", "sokdok");
|
|
|
|
|
|
|
|
|
|
|
|
printf("%s\n", EXS(test));
|
|
|
|
printf("%s\n", EXS(test));
|
|
|
|
|
|
|
|
|
|
|
|
printf("strlen() %d, ->currentSize %d\n", strlen(EXS(test)), exs_realsize(test));
|
|
|
|
printf("strlen() %ld, ->currentSize %ld\n", strlen(EXS(test)), exs_realsize(test));
|
|
|
|
|
|
|
|
|
|
|
|
exs_free(test);
|
|
|
|
exs_free(test);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -60,6 +60,10 @@ void test_parse()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//printf("Parse okay.\n");
|
|
|
|
//printf("Parse okay.\n");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
se_rplaca(list, se_make("test1"));
|
|
|
|
|
|
|
|
se_rplaca(list->cdr, se_make("(test)"));
|
|
|
|
|
|
|
|
se_rplacd(list->cdr->car_l, se_make("(list)").ptr);
|
|
|
|
|
|
|
|
|
|
|
|
se_print(NULL, list);
|
|
|
|
se_print(NULL, list);
|
|
|
|
printf("\n");
|
|
|
|
printf("\n");
|
|
|
|
// printf("(car list) -> %s\n", (char*)list->ptr);
|
|
|
|
// printf("(car list) -> %s\n", (char*)list->ptr);
|
|
|
|