1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-17 03:50:03 +02:00

lib/include/vector.h: define VECTOR_BLOCK_SIZE instead of magic number.

This commit is contained in:
Henrik Hautakoski 2019-05-09 09:39:13 +02:00
parent eb3e432c91
commit 5477a8be63
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA
2 changed files with 3 additions and 1 deletions

View file

@ -30,6 +30,8 @@ struct vector {
void *base;
};
#define VECTOR_BLOCK_SIZE 64
#define VECTOR_INIT(block_size) { block_size, 0, 0, NULL }
void vector_init(struct vector* v, size_t block_size);