Some minor tweaks to internal ptr types

- Renamed mpair -> mptr, may have >2 blocks in the future.

- Renamed branch -> bptr for consistency.

- Renamed other_block -> redund_rbyd.

- Changed comparison functions to use -1, 0, +1, even for unordered
  types.

- Added lfs_cmp function for unioning comparisons with signed errors.
This commit is contained in:
Christopher Haster
2023-06-27 13:15:15 -05:00
parent cf588ac3fa
commit 91d90b7eef
3 changed files with 237 additions and 246 deletions
+1 -1
View File
@@ -374,8 +374,8 @@ typedef struct lfsr_mdir {
// -1 => mroot
// >=0 => bid in the mtree
lfs_ssize_t mid;
lfs_block_t other_block;
lfsr_rbyd_t rbyd;
lfs_block_t redund_block;
} lfsr_mdir_t;
typedef struct lfsr_openedmdir {