visual studio project

This commit is contained in:
2022-03-28 00:32:46 +03:00
parent 5bc866cf3e
commit c1d004f411
32 changed files with 1010 additions and 386 deletions

View File

@@ -1,5 +1,9 @@
#pragma once
#if __cplusplus
extern "C" {
#endif
#include "../base/base.h"
#include "hash.h"
#include "KeyValuePair.h"
@@ -41,3 +45,7 @@ void Hashtable_set(Hashtable* ht, char* key, Unitype u);
Autoarr_foreach(AR, EL, codeblock);\
}\
})
#if __cplusplus
}
#endif

View File

@@ -1,3 +1,9 @@
#pragma once
#if __cplusplus
extern "C" {
#endif
#include "../base/base.h"
#include "../Autoarr/Autoarr.h"
@@ -15,3 +21,7 @@ void KeyValuePair_free(KeyValuePair p);
void Autoarr_KeyValuePair_clear(Autoarr_KeyValuePair* ar);
void printkvp(KeyValuePair p);
#if __cplusplus
}
#endif

View File

@@ -1,8 +1,16 @@
#pragma once
#if __cplusplus
extern "C" {
#endif
#include "../base/base.h"
//djb2 hash function from http://www.cse.yorku.ca/~oz/hash.html
uint32 ihash(char *str);
//sdbm hash function
uint64 lhash(char* str);
#if __cplusplus
}
#endif