minor: formatting

laumann
May 10, 2023, 9:31 PM
HKBM7HZGBH24UDVURTABIPF4P32AY6MDAZUDF3MWTXO7565BYWLQC

Dependencies

  • [2] NZNIG2UL Fix lots of warnings, adjust build flags
  • [3] JAGXXSR7 change: initial work on decoding hunks
  • [4] XTKRT6OQ format the codebase
  • [5] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change
  • [6] XTVLIC24 change: refactor to print_change()
  • [7] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [8] VKLGQREY change: add base32 decode, initial deconstruction of hashed
  • [9] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others

Change contents

  • replacement in hunk.h at line 6
    [3.109][3.286:372]()
    unsigned int line; /* This is defined as usize, but it's probably better as a u64 */
    [3.109]
    [3.109]
    unsigned int line; /* Defined as usize, probably better as u64 */
  • replacement in common.h at line 4
    [3.770][3.770:790]()
    typedef char * str;
    [3.770]
    [3.790]
    typedef char *str;
  • replacement in change.h at line 17
    [3.343][3.158:212]()
    uint64_t hashed_len; /* length of hashed contents */
    [3.343]
    [3.397]
    uint64_t hashed_len; /* length of hashed contents */
  • replacement in change.h at line 69
    [3.2251][3.478:542](),[3.474][3.478:542]()
    uint64_t version; /* same as in offsets? here to be hashed! */
    [3.2251]
    [3.2252]
    uint64_t version; /* same as in offsets? here to be hashed! */
  • replacement in change.c at line 609
    [3.1295][2.646:714]()
    printf("%lu. %s", i + 1, hunk_basehunk_type_str(hunk->hunktype));
    [3.1295]
    [3.1362]
    printf("%lu. %s", i + 1,
    hunk_basehunk_type_str(hunk->hunktype));