diff options
Diffstat (limited to 'docs/release/src/osd/winui/bitmask.h')
-rw-r--r-- | docs/release/src/osd/winui/bitmask.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/release/src/osd/winui/bitmask.h b/docs/release/src/osd/winui/bitmask.h new file mode 100644 index 00000000000..ad21e6ae7ae --- /dev/null +++ b/docs/release/src/osd/winui/bitmask.h @@ -0,0 +1,33 @@ +// For licensing and usage information, read docs/winui_license.txt +//**************************************************************************** + +#ifndef BITMASK_H +#define BITMASK_H + +/* Bit array type */ +typedef struct +{ + UINT m_nSize; + UCHAR* m_lpBits; +} BITS, * LPBITS; + +/* Bit functions */ +LPBITS NewBits(UINT nLength /* in bits */); +void DeleteBits(LPBITS lpBits); +BOOL TestBit(LPBITS lpBits, UINT nBit); +void SetBit(LPBITS lpBits, UINT nBit); +void ClearBit(LPBITS lpBits, UINT nBit); +void SetAllBits(LPBITS lpBits, BOOL bSet); +int FindBit(LPBITS lpBits, int nStartPos, BOOL bSet); + +/* Linked list type */ +typedef struct +{ + LPVOID data; + LPVOID next; + LPVOID prev; +} NODE, * LPNODE; + +/* Linked list functions */ + +#endif /* BITMASK_H */ |