/runtime/common.d

http://github.com/wilkie/djehuty · D · 38 lines · 22 code · 8 blank · 8 comment · 0 complexity · a386e755fe71af3f05eb18e890721427 MD5 · raw file

  1. /*
  2. * common.d
  3. *
  4. * This module contains any common definitions.
  5. *
  6. */
  7. module runtime.common;
  8. extern(C):
  9. package {
  10. struct aaA {
  11. aaA* left;
  12. aaA* right;
  13. hash_t hash;
  14. /* key */
  15. /* value */
  16. }
  17. struct BB {
  18. aaA*[] b;
  19. size_t nodes;
  20. }
  21. struct AA {
  22. BB* a;
  23. }
  24. enum BlkAttr : uint {
  25. FINALIZE = 0b0000_0001,
  26. NO_SCAN = 0b0000_0010,
  27. NO_MOVE = 0b0000_0100,
  28. ALL_BITS = 0b1111_1111
  29. }
  30. }