changed some log messages

This commit is contained in:
timerix 2022-08-31 14:17:48 +06:00
parent 37e8fdcd6a
commit 982a79a052
3 changed files with 7 additions and 3 deletions

View File

@ -44,6 +44,7 @@ typedef enum{
kerepTypeDescriptorsState initState=NotInitialized;
void kerepTypeDescriptors_beginInit(){
printf("\e[94mtype descriptors initializing...\n");
__kerepTypeDescriptors=Autoarr_create(kerepTypeDescriptor, 256, 256);
if(__kerepTypeDescriptors==NULL) throw(ERR_NULLPTR);
}
@ -52,14 +53,16 @@ void kerepTypeDescriptors_endInit(){
typeDescriptors=Autoarr_toArray(__kerepTypeDescriptors);
Autoarr_free(__kerepTypeDescriptors,true);
if(typeDescriptors==NULL) throw(ERR_NULLPTR);
printf("\e[92minitialized %u type descriptors\n", kerepTypeId_last);
}
void __kerepType_register(char* name, int16 size, void (*free_members)(void*)){
kerepTypeDescriptor typeDesc={
.name=name,
.size=size,
.free_members=free_members,
.id=++kerepTypeId_last
}; dbg(kerepTypeId_last);
};
Autoarr_add(__kerepTypeDescriptors, typeDesc);
}

View File

@ -16,7 +16,7 @@ int main(){
kerepTypeDescriptors_beginInit();
kerepTypeDescriptors_initKerepTypes();
kerepTypeDescriptors_endInit();
printf("\e[92mkerep tests are starting!\e[97m\n");
printf("\e[97mkerep tests are starting!\n");
optime("test_all",1,test_all());
printf("\e[0m\n");
return 0;

View File

@ -6,8 +6,9 @@ void printstnode(STNode* node){
IFWIN("%llu", "%lu")
"\n address: %p\n value: ",sizeof(STNode),node);
printuni(node->value);
printf("\n");
// prints pointers to all existing branches
/* printf("\n branches: %p\n", node->branches);
/* printf(" 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])