mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	 f2cf1e3e28
			
		
	
	
		f2cf1e3e28
		
			
		
	
	
	
	
		
			
			After the removal of pgen, multiple header and function prototypes that lack implementation or are unused are still lying around.
		
			
				
	
	
		
			23 lines
		
	
	
	
		
			468 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
	
		
			468 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
 | |
| #ifndef Py_BITSET_H
 | |
| #define Py_BITSET_H
 | |
| #ifdef __cplusplus
 | |
| extern "C" {
 | |
| #endif
 | |
| 
 | |
| /* Bitset interface */
 | |
| 
 | |
| #define BYTE            char
 | |
| typedef BYTE *bitset;
 | |
| 
 | |
| #define testbit(ss, ibit) (((ss)[BIT2BYTE(ibit)] & BIT2MASK(ibit)) != 0)
 | |
| 
 | |
| #define BITSPERBYTE     (8*sizeof(BYTE))
 | |
| #define BIT2BYTE(ibit)  ((ibit) / BITSPERBYTE)
 | |
| #define BIT2SHIFT(ibit) ((ibit) % BITSPERBYTE)
 | |
| #define BIT2MASK(ibit)  (1 << BIT2SHIFT(ibit))
 | |
| 
 | |
| #ifdef __cplusplus
 | |
| }
 | |
| #endif
 | |
| #endif /* !Py_BITSET_H */
 |