types.h 498 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include "pocketpy/common/vector.h"
  3. #include "pocketpy/objects/base.h"
  4. typedef struct {
  5. uint64_t hash;
  6. py_TValue key;
  7. py_TValue val;
  8. } DictEntry;
  9. typedef struct {
  10. int length;
  11. uint32_t capacity;
  12. void* indices;
  13. bool index_is_short;
  14. uint32_t null_index_value;
  15. c11_vector /*T=DictEntry*/ entries;
  16. } Dict;
  17. typedef c11_vector List;
  18. void c11_chunked_array2d__mark(void* ud, c11_vector* p_stack);
  19. void function__gc_mark(void* ud, c11_vector* p_stack);