dict.h 368 B

123456789101112131415161718192021222324
  1. #ifndef _MULTIDICT_C_H
  2. #define _MULTIDICT_C_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct { // 16 or 24 for GC prefix
  7. PyObject_HEAD // 16
  8. PyObject *weaklist;
  9. pair_list_t pairs;
  10. } MultiDictObject;
  11. typedef struct {
  12. PyObject_HEAD
  13. PyObject *weaklist;
  14. MultiDictObject *md;
  15. } MultiDictProxyObject;
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif