some type system updates
This commit is contained in:
@@ -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=UniPtrHeap(kerepTypeId_CharPtr,tc);
|
||||
Unitype u=UniHeap(kerepTypeId_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=UniPtrHeap(kerepTypeId_CharPtr, cptr_copy("32.2004"));
|
||||
u=UniHeap(kerepTypeId_CharPtr, cptr_copy("32.2004"));
|
||||
printuni(u);
|
||||
ST_push(node,"message_id", u);
|
||||
printf(" -> message_id\n ");
|
||||
u=UniPtrStack(kerepTypeId_CharPtr,"some text UwU");
|
||||
u=UniStack(kerepTypeId_CharPtr,"some text UwU");
|
||||
printuni(u);
|
||||
ST_push(node,"text", u);
|
||||
printf(" -> text\n");
|
||||
|
||||
Reference in New Issue
Block a user