Minor fixes & modifications

This commit is contained in:
2022-08-19 20:00:10 +03:00
parent 7618294078
commit 08aebcc15b
11 changed files with 72 additions and 98 deletions
+2 -4
View File
@@ -4,14 +4,11 @@
#include "include.h"
#include "../__internal/assert.h"
size_t array_size (const arr_t* x) {
return x->size;
}
size_t array_nmemb(const arr_t* x) {
return x->size*vtype_size(x->type);
}
hash_t array_hash(const arr_t* s) {
hash_t hash = 0;
@@ -26,6 +23,7 @@ hash_t array_hash(const arr_t* s) {
return hash + VTYPE_ARRAY;
}
size_t libcdsb_array_count(const arr_t* s, const void* v, vtype t) {
void *p;
void *e;