Source code of Windows XP (NT5)
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.

30 lines
775 B

  1. // IntSet.h
  2. // Angshuman Guha
  3. // aguha
  4. // Jan 15, 2001
  5. #ifndef __INC_INTSET_H
  6. #define __INC_INTSET_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef void * IntSet;
  11. BOOL MakeIntSet(unsigned int cUniverse, IntSet *pIntSet); // members are 0 thru cUniverse-1, initially empty
  12. BOOL CopyIntSet(IntSet is, IntSet *pIntSet);
  13. void DestroyIntSet(IntSet is);
  14. BOOL AddMemberIntSet(IntSet is, unsigned int member); // TRUE == success
  15. BOOL UnionIntSet(IntSet dst, IntSet src); // TRUE == success
  16. BOOL FirstMemberIntSet(IntSet is, unsigned int *pmember); // TRUE == success
  17. BOOL NextMemberIntSet(IntSet is, unsigned int *pmember); // TRUE == success
  18. BOOL IsEqualIntSet(IntSet is1, IntSet is2);
  19. BOOL IsMemberIntSet(IntSet is, unsigned int member);
  20. #ifdef __cplusplus
  21. }
  22. #endif
  23. #endif