kerepType -> kt
This commit is contained in:
@@ -13,9 +13,9 @@ void test_all(){
|
||||
|
||||
int main(){
|
||||
setlocale(LC_ALL, "en-US.Unicode");
|
||||
kerepTypeDescriptors_beginInit();
|
||||
kerepTypeDescriptors_initKerepTypes();
|
||||
kerepTypeDescriptors_endInit();
|
||||
ktDescriptors_beginInit();
|
||||
ktDescriptors_initKerepTypes();
|
||||
ktDescriptors_endInit();
|
||||
printf("\e[97mkerep tests are starting!\n");
|
||||
optime("test_all",1,test_all());
|
||||
printf("\e[0m\n");
|
||||
|
||||
@@ -18,7 +18,7 @@ void print_dtsod(Hashtable* dtsod){
|
||||
printf("\e[92m");
|
||||
Hashtable_foreach(dtsod, p,({
|
||||
printkvp(p);
|
||||
if(p.value.typeId==kerepTypeId_HashtablePtr){
|
||||
if(p.value.typeId==ktId_HashtablePtr){
|
||||
printf(": {\n");
|
||||
Hashtable* sub=p.value.VoidPtr;
|
||||
Hashtable_foreach(sub, _p,({
|
||||
|
||||
@@ -4,7 +4,7 @@ EXPORT void CALL test_marshalling(char* text, KVPair** kptr){
|
||||
KVPair* k=malloc(sizeof(KVPair));
|
||||
k->key="message";
|
||||
char* tc=cptr_copy(text);
|
||||
Unitype u=UniHeap(kerepTypeId_CharPtr,tc);
|
||||
Unitype u=UniHeap(ktId_CharPtr,tc);
|
||||
k->value=u;
|
||||
*kptr=k;
|
||||
}
|
||||
|
||||
@@ -44,11 +44,11 @@ void test_searchtree(){
|
||||
printuni(u);
|
||||
ST_push(node,"channel_id", u);
|
||||
printf(" -> channel_id\n ");
|
||||
u=UniHeap(kerepTypeId_CharPtr, cptr_copy("32.2004"));
|
||||
u=UniHeap(ktId_CharPtr, cptr_copy("32.2004"));
|
||||
printuni(u);
|
||||
ST_push(node,"message_id", u);
|
||||
printf(" -> message_id\n ");
|
||||
u=UniStack(kerepTypeId_CharPtr,"some text UwU");
|
||||
u=UniStack(ktId_CharPtr,"some text UwU");
|
||||
printuni(u);
|
||||
ST_push(node,"text", u);
|
||||
printf(" -> text\n");
|
||||
|
||||
Reference in New Issue
Block a user