Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added lfsr_rid/bid/mid/did_t types, tried using types more consistently
Adopted lfsr_rid/bid/mid/did_t where appropriate. This includes using lfsr_rid_t for tag/rbyd weights. Although I am using lfsr_srid_t for rbyd weights now, since it both captures the use of the sign bit and reduces the number of casts a bit in the code. I learned recently Zig has any-bit integers (e.g. uint31_t), and I'm realizing how nice it would be to have those in this codebase. Also tried to use lfs_size_t/lfs_off_t more correctly. In Linux/BSD, only off_t is used for file-size-related operations and is usually much larger than size_t. These were used interchangably in littlefs and their original meaning kind of fell by the wayside. Getting their use right will be important if littlefs ever supports different integer widths.
- Loading branch information