diff --git a/kerep.vcxproj b/kerep.vcxproj
index cd2ba68..33807a4 100644
--- a/kerep.vcxproj
+++ b/kerep.vcxproj
@@ -32,16 +32,13 @@
-
-
-
@@ -49,7 +46,6 @@
-
@@ -61,10 +57,8 @@
-
-
@@ -75,7 +69,7 @@
Win32Proj
{52f0bd29-a3cb-47ce-b25d-ceaf5dfb2d73}
kerep
- 10.0.18362.0
+ 10.0
@@ -162,9 +156,9 @@
stdc17
Speed
- /Zc:twoPhase- /MP %(AdditionalOptions)
+ /Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)
Default
- stdcpp20
+ stdcpp17
None
Disabled
@@ -188,10 +182,10 @@
stdc17
Speed
- /Zc:twoPhase- /MP %(AdditionalOptions)
+ /Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)
MultiThreadedDLL
Default
- stdcpp20
+ stdcpp17
None
@@ -214,10 +208,12 @@
stdc17
Speed
- /Zc:twoPhase- /MP %(AdditionalOptions)
+ /Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)
Default
- stdcpp20
+ stdcpp17
None
+ true
+ true
Windows
@@ -239,10 +235,10 @@
stdc17
Speed
- /Zc:twoPhase- /MP %(AdditionalOptions)
+ /Zc:twoPhase- /MP -fms-compatibility-version=14 %(AdditionalOptions)
MultiThreadedDLL
Default
- stdcpp20
+ stdcpp17
None
@@ -256,4 +252,4 @@
-
\ No newline at end of file
+
diff --git a/src/Autoarr/Autoarr.c b/src/Autoarr/Autoarr.c
index 90346bb..48d595a 100644
--- a/src/Autoarr/Autoarr.c
+++ b/src/Autoarr/Autoarr.c
@@ -1,9 +1,9 @@
#include "Autoarr.h"
-Autoarr_define(uint8)
-Autoarr_define(int8)
-Autoarr_define(uint16)
-Autoarr_define(int16)
+Autoarr_define(uint8);
+Autoarr_define(int8);
+Autoarr_define(uint16);
+Autoarr_define(int16);
Autoarr_define(uint32);
Autoarr_define(int32);
Autoarr_define(uint64);
diff --git a/src/base/std.h b/src/base/std.h
index 815c63c..6024772 100644
--- a/src/base/std.h
+++ b/src/base/std.h
@@ -35,6 +35,7 @@ extern "C" {
#pragma GCC error "unknown compiler"
#endif
+
#ifdef _MSC_VER
#define IFWIN(YES, NO) YES
#define IFMSC(YES, NO) YES
@@ -48,9 +49,6 @@ extern "C" {
#pragma GCC error "unknown compiler"
#endif
-#ifndef NULL
- #define NULL ((void*)0)
-#endif
#if __cplusplus
}
diff --git a/src/base/types.h b/src/base/types.h
index c061ad2..e34d95f 100644
--- a/src/base/types.h
+++ b/src/base/types.h
@@ -24,9 +24,9 @@ typedef enum __attribute__((__packed__)) my_type {
UniversalType,
AutoarrInt8Ptr, AutoarrUInt8Ptr, AutoarrInt16Ptr, AutoarrUInt16Ptr,
AutoarrInt32Ptr, AutoarrUInt32Ptr, AutoarrInt64Ptr, AutoarrUInt64Ptr,
- AutoarrUnitypePtr, AutoarrKVPairPtr
+ AutoarrUnitypePtr, AutoarrKVPairPtr, knSocketPtr
} my_type;
-#define my_type_last AutoarrKVPairPtr
+#define my_type_last knSocketPtr
const char* my_type_name(my_type t);
diff --git a/tests/test_dtsod.c b/tests/test_dtsod.c
index 317c7da..cf238d2 100644
--- a/tests/test_dtsod.c
+++ b/tests/test_dtsod.c
@@ -33,7 +33,7 @@ void print_dtsod(Hashtable* dtsod){
}
void test_dtsod(){
- //optime(__func__,1,({
+ optime(__func__,1,({
printf("\e[96m-------------[test_dtsod]-------------\n");
Hashtable* dtsod;
char* s;
@@ -61,5 +61,5 @@ void test_dtsod(){
}));
free(s);
- //}));
+ }));
}
\ No newline at end of file
diff --git a/tests/test_hashtable.c b/tests/test_hashtable.c
index 61d74e7..8ff1d53 100644
--- a/tests/test_hashtable.c
+++ b/tests/test_hashtable.c
@@ -63,7 +63,7 @@ Unitype gett(Hashtable* ht){
void test_hashtable(){
optime("test_hashtable",1,({
- printf("\e[96m-----------[test_hashtable]------------\n");
+ printf("\e[96m-----------[test_hashtable]-----------\n");
Hashtable* ht=Hashtable_create();
printf("\e[92mhashtable created\n");
print_hashtable(ht);
diff --git a/tests/test_searchtree.c b/tests/test_searchtree.c
index 2cb24a1..cff22a5 100644
--- a/tests/test_searchtree.c
+++ b/tests/test_searchtree.c
@@ -7,7 +7,7 @@ void printstnode(STNode* node){
"\n address: %p\n value: ",sizeof(STNode),node);
printuni(node->value);
// prints pointers to all existing branches
- printf("\n branches: %p\n", node->branches);
+ /* printf("\n branches: %p\n", node->branches);
if(node->branches) for(uint8 i=0;i<8;i++){
printf(" \e[90m[%u]=%p\n",i,node->branches[i]);
if(node->branches[i])
@@ -18,12 +18,12 @@ void printstnode(STNode* node){
printf(" \e[90m[%u]=%p\n",iii,node->branches[i][ii][iii]);
}
- }
+ } */
}
void test_searchtree(){
optime("test_searchtree",1,({
- printf("\e[96m-----------[test_searchtree]-----------\n");
+ printf("\e[96m-----------[test_searchtree]----------\n");
STNode* node=STNode_create();
printf("\e[92mnode created\n");
printf("push:\e[94m\n ");
diff --git a/tests/test_string.c b/tests/test_string.c
index 047f84d..9a6aac2 100644
--- a/tests/test_string.c
+++ b/tests/test_string.c
@@ -3,7 +3,7 @@
void test_string(){
optime(__func__,1,({
- printf("\e[96m-------------[test_string]-------------\n");
+ printf("\e[96m-------------[test_string]------------\n");
char c[]="0123456789abcdef";
string s={.ptr=c, .length=cptr_length(c)};
if(s.length!=sizeof(c)-1) throw("string created with incorrect length");
diff --git a/tests/tests.h b/tests/tests.h
index d19ea17..71cc4b1 100644
--- a/tests/tests.h
+++ b/tests/tests.h
@@ -14,6 +14,8 @@ void test_hash_functions();
void test_hashtable();
void test_dtsod();
+#define PRINT_SIZEOF(T) printf("\e[94m" #T " size: \e[96m" IFWIN("%llu", "%lu") "\n", sizeof(T))
+
#if __cplusplus
}
-#endif
\ No newline at end of file
+#endif