Merge pull request #256 from ZystemOS/feature/zig-update
Update to zig master
This commit is contained in:
		
						commit
						035ae21c42
					
				
					 3 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -578,5 +578,5 @@ pub fn init(mem_profile: *const MemProfile) void {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
test "" {
 | 
					test "" {
 | 
				
			||||||
    std.meta.refAllDecls(@This());
 | 
					    std.testing.refAllDecls(@This());
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -23,7 +23,7 @@ pub fn ComptimeBitmap(comptime BitmapType: type) type {
 | 
				
			||||||
        pub const BITMAP_FULL = std.math.maxInt(BitmapType);
 | 
					        pub const BITMAP_FULL = std.math.maxInt(BitmapType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type
 | 
					        /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type
 | 
				
			||||||
        pub const IndexType = std.meta.IntType(false, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable));
 | 
					        pub const IndexType = std.meta.IntType(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        bitmap: BitmapType,
 | 
					        bitmap: BitmapType,
 | 
				
			||||||
        num_free_entries: BitmapType,
 | 
					        num_free_entries: BitmapType,
 | 
				
			||||||
| 
						 | 
					@ -202,7 +202,7 @@ pub fn Bitmap(comptime BitmapType: type) type {
 | 
				
			||||||
        pub const BITMAP_FULL = std.math.maxInt(BitmapType);
 | 
					        pub const BITMAP_FULL = std.math.maxInt(BitmapType);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type
 | 
					        /// The type of an index into a bitmap entry. The smallest integer needed to represent all bit positions in the bitmap entry type
 | 
				
			||||||
        pub const IndexType = std.meta.IntType(false, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable));
 | 
					        pub const IndexType = std.meta.IntType(.unsigned, std.math.log2(std.math.ceilPowerOfTwo(u16, std.meta.bitCount(BitmapType)) catch unreachable));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        num_bitmaps: usize,
 | 
					        num_bitmaps: usize,
 | 
				
			||||||
        num_entries: usize,
 | 
					        num_entries: usize,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -125,7 +125,7 @@ pub const KeyAction = struct {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// The type used to index the keyboard queue
 | 
					/// The type used to index the keyboard queue
 | 
				
			||||||
const QueueIndex = std.meta.IntType(false, std.math.log2(QUEUE_SIZE));
 | 
					const QueueIndex = std.meta.IntType(.unsigned, std.math.log2(QUEUE_SIZE));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/// A keyboard buffer that stores keyboard actions. This corresponds to a single hardware keyboard
 | 
					/// A keyboard buffer that stores keyboard actions. This corresponds to a single hardware keyboard
 | 
				
			||||||
pub const Keyboard = struct {
 | 
					pub const Keyboard = struct {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue