diff --git a/c/realloc_speed_test/realloc_speed_test.geany b/c/realloc_speed_test/realloc_speed_test.geany index 1d3ba5a..8b47433 100644 --- a/c/realloc_speed_test/realloc_speed_test.geany +++ b/c/realloc_speed_test/realloc_speed_test.geany @@ -16,17 +16,9 @@ long_line_behaviour=1 long_line_column=72 [files] -current_page=2 -FILE_NAME_0=654;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_c.c;0 -FILE_NAME_1=275;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/smart_string.c;0 -FILE_NAME_2=241;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/smart_string.h;0 -FILE_NAME_3=428;C++;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_cpp.cpp;0 -FILE_NAME_4=654;Make;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/Makefile;0 -FILE_NAME_5=489;C;0;16;1;1;1;/home/kolan/projects/include/xerror.h;0 -FILE_NAME_6=1209;C;0;16;1;1;1;/usr/include/err.h;0 -FILE_NAME_7=879;C;0;16;1;1;1;/home/kolan/projects/include/xerror.c;0 -FILE_NAME_8=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.c;0 -FILE_NAME_9=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.h;0 +current_page=1 +FILE_NAME_0=781;C;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_c.c;0 +FILE_NAME_1=515;C++;0;16;1;1;1;/home/kolan/dev/c/realloc_speed_test/realloc_speed_test_cpp.cpp;0 [build-menu] NF_00_LB=_Сделать diff --git a/c/zmalloc/zmalloc.geany b/c/zmalloc/zmalloc.geany index 8d694b2..3eea68d 100644 --- a/c/zmalloc/zmalloc.geany +++ b/c/zmalloc/zmalloc.geany @@ -16,13 +16,11 @@ long_line_behaviour=1 long_line_column=72 [files] -current_page=5 -FILE_NAME_0=40;C;0;16;1;1;1;/home/kolan/dev/c/zmalloc/zmalloc_test.c;0 -FILE_NAME_1=1772;Make;0;16;1;1;1;/home/kolan/dev/c/zmalloc/Makefile;0 -FILE_NAME_2=0;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.c;0 -FILE_NAME_3=658;C;0;16;1;1;1;/home/kolan/projects/include/xmalloc.h;0 -FILE_NAME_4=21;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.c;0 -FILE_NAME_5=6;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.h;0 +current_page=0 +FILE_NAME_0=1515;C;0;16;1;1;1;/home/kolan/dev/c/zmalloc/zmalloc_test.c;0 +FILE_NAME_1=1373;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.c;0 +FILE_NAME_2=1082;C;0;16;1;1;1;/home/kolan/projects/include/zmalloc.h;0 +FILE_NAME_3=571;Make;0;16;1;1;1;/home/kolan/dev/c/zmalloc/Makefile;0 [build-menu] NF_00_LB=_Сделать diff --git a/c/zmalloc/zmalloc_test.c b/c/zmalloc/zmalloc_test.c index 49b005e..3088605 100644 --- a/c/zmalloc/zmalloc_test.c +++ b/c/zmalloc/zmalloc_test.c @@ -11,6 +11,14 @@ int main(int argc, char *argv[]) { + // тест zmalloc_getinfo() + //~ void *p1 = zmalloc(48); + //~ struct zmalloc_s zms; + //~ zmalloc_getinfo(p1, &zms); + //~ printf("all=%lu, len=%lu\n", zms.all, zms.len); + //~ zfree(&p1); + + if (argc != 4) { fputs("Usage: realloc_speed_test_cpp iterations nobj maxsz\n", stderr); exit(-1);