summaryrefslogtreecommitdiffhomepage
path: root/cmap_test.c
diff options
context:
space:
mode:
authortylo <[email protected]>2020-03-11 12:17:12 +0100
committertylo <[email protected]>2020-03-11 12:17:12 +0100
commita084c423f73018aec5c49d8bcbaa38080c277cfb (patch)
tree27d1941271910a8014d4de3c83184ae65781bf31 /cmap_test.c
parent5fd6c45cb5869f4316c843d7269d69338e213579 (diff)
downloadSTC-modified-a084c423f73018aec5c49d8bcbaa38080c277cfb.tar.gz
STC-modified-a084c423f73018aec5c49d8bcbaa38080c277cfb.zip
NEW API
Diffstat (limited to 'cmap_test.c')
-rw-r--r--cmap_test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmap_test.c b/cmap_test.c
index 39715b3d..563c27c7 100644
--- a/cmap_test.c
+++ b/cmap_test.c
@@ -28,7 +28,7 @@
#include "c_string.h"
-declare_c_StringVector(s);
+c_declare_Vector_string(s);
c_declare_Hashmap_stringkey(ss, c_String, c_string_destroy);
c_declare_Hashmap_stringkey(si, int);
c_declare_Hashmap(id, uint64_t, double);
@@ -82,7 +82,7 @@ void stringSpeed(int limit) {
if (p != c_string_npos) x += p;
}
clock_t diff = clock() - before;
- printf("cstring length = %llu / %llu, sum %llu speed: %f\n", c_string_size(s), c_string_capacity(s), x, 1.0 * diff / CLOCKS_PER_SEC);
+ printf("string length = %llu / %llu, sum %llu speed: %f\n", c_string_size(s), c_string_capacity(s), x, 1.0 * diff / CLOCKS_PER_SEC);
}
int main()