hunk + hash: replace abort() calls with die()

laumann
May 12, 2023, 12:48 PM
QA7HY2THWTEZ2AQ4SINYGJKHHX4RFNZKA5LY4EDQCLVAVDZAZ2OQC

Dependencies

  • [2] XTVLIC24 change: refactor to print_change()
  • [3] YG4DZB3A add representation of hash, decode dependencies
  • [4] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [5] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others
  • [6] DKX3RO3L base32: Add encoding of hashes, print base32-encoded hashes
  • [7] JAGXXSR7 change: initial work on decoding hunks

Change contents

  • replacement in hunk.c at line 42
    [3.2135][2.0:39]()
    abort(); // FIXME Replace with die()
    [3.2135]
    [3.2146]
    die("unknown hunk type: %u", hunk_type);
  • replacement in hunk.c at line 51
    [3.746][3.2149:2150](),[3.2149][3.2149:2150]()
    }
    [3.746]
    }
  • edit in hash.c at line 7
    [3.625]
    [3.421]
    #include "scaffold.h"
  • replacement in hash.c at line 33
    [3.685][3.685:696]()
    abort();
    [3.685]
    [3.696]
    die("unknown hash variant: %u", hash->variant);