change: replace calls to abort() with die()

laumann
May 12, 2023, 12:42 PM
QLH63JBHSLUR4D7RQRPWJMKNPTTPZJPVB3YYAP46H74RDP5YNIXAC

Dependencies

  • [2] KEC3WLFN change: remove debugging lines
  • [3] XTVLIC24 change: refactor to print_change()
  • [4] FMYCPGKD change: extract hash list decoding into reused function
  • [5] JAGXXSR7 change: initial work on decoding hunks
  • [6] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others
  • [7] 55SITR55 change: decode replacements
  • [8] YDQLW2ZO change: rework printing of patches - print Edit and Newvertex types
  • [9] WFA5BBRF Fix warnings
  • [10] NZNIG2UL Fix lots of warnings, adjust build flags
  • [*] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change

Change contents

  • replacement in change.c at line 287
    [2.404][4.3351:3387](),[4.3351][4.3351:3387]()
    switch (bincode_getu32(binstat)) {
    [2.404]
    [4.3828]
    uint32_t x;
    x = bincode_getu32(binstat);
    switch (x) {
  • replacement in change.c at line 301
    [4.3740][4.3740:3751]()
    abort();
    [4.3740]
    [4.4352]
    die("unknown atom type: %u", x);
  • replacement in change.c at line 361
    [4.604][4.4443:4491](),[4.4491][4.5486:5532](),[4.4531][4.604:616](),[4.5532][4.604:616](),[4.604][4.604:616]()
    fprintf(stderr, "not yet implemented: %s\n",
    hunk_basehunk_type_str(bhunk->hunktype));
    abort();
    [4.604]
    [4.616]
    die("not yet implemented: %s",
    hunk_basehunk_type_str(bhunk->hunktype));
  • replacement in change.c at line 551
    [4.981][4.981:992]()
    abort();
    [4.981]
    [3.247]
    die("unknown atom type: %u", a->atomtype);