hunk: define hunk types that operate on files

laumann
Oct 31, 2022, 1:54 PM
RIHOSQNYAAWSLYV7NCI5BMJ6D66J7W5OJ4SCGKXYKZLWV23QMZ2QC

Dependencies

  • [2] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others
  • [*] JAGXXSR7 change: initial work on decoding hunks
  • [*] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"

Change contents

  • edit in hunk.h at line 26
    [5.169]
    [5.169]
    Atom del;
    Atom add;
  • edit in hunk.h at line 30
    [5.192]
    [4.1000]
    typedef struct {
    Atom del;
    Atom contents; /* FIXME Option<Atom> */
    str path;
    str encoding;
    } Filedel;
  • edit in hunk.h at line 39
    [5.210]
    [2.373]
    Atom undel;
    Atom contents; /* FIXME Option<Atom> */
    str path;
    str encoding;
    } Fileundel;
    typedef struct {
    Atom addname;
    Atom addinode;
    Atom contents; /* FIXME Option<Atom> */
    str path;
    str encoding;
    } Fileadd;
    typedef struct {
  • edit in hunk.h at line 70
    [5.331]
    [5.331]
    Filedel filedel;
    Fileundel fileundel;
    Fileadd fileadd;