Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_OIBTree.c 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*############################################################################
  2. #
  3. # Copyright (c) 2004 Zope Foundation and Contributors.
  4. # All Rights Reserved.
  5. #
  6. # This software is subject to the provisions of the Zope Public License,
  7. # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution.
  8. # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
  9. # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  10. # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
  11. # FOR A PARTICULAR PURPOSE.
  12. #
  13. ############################################################################*/
  14. #define MASTER_ID "$Id$\n"
  15. /* OIBTree - object key, int value BTree
  16. Implements a collection using object type keys
  17. and int type values
  18. */
  19. #define PERSISTENT
  20. #define MOD_NAME_PREFIX "OI"
  21. #define DEFAULT_MAX_BUCKET_SIZE 60
  22. #define DEFAULT_MAX_BTREE_SIZE 250
  23. #include "_compat.h"
  24. #include "objectkeymacros.h"
  25. #include "intvaluemacros.h"
  26. #ifdef PY3K
  27. #define INITMODULE PyInit__OIBTree
  28. #else
  29. #define INITMODULE init_OIBTree
  30. #endif
  31. #include "BTreeModuleTemplate.c"