change: decode replacements
Dependencies
- [2]
ZKAOPMCHchange: Implement decoding of edits, atoms, positions, among others - [3]
NETL2N53Makefile: add check target - [4]
JAGXXSR7change: initial work on decoding hunks - [5]
FMYCPGKDchange: extract hash list decoding into reused function - [6]
B3XLVPNCAdd ani.c and initial Makefile - [7]
2U7P5SFQChange struct names "struct foo -> typedef struct Foo" - [*]
Q7TKZCJPAdd initial support for reading the offsets from a (fixed) change
Change contents
- replacement in hunk.h at line 37
uint64_t atom;uint64_t replacement;Atom change;Atom replacement; - edit in hunk.h at line 40
str encoding; - replacement in change.c at line 388
printf("%d. Edit in %s:%d\n", i + 1,bhunk->edit.local.path, bhunk->edit.local.line);printf("%d. Edit in %s:%d (%s)\n", i + 1,bhunk->edit.local.path, bhunk->edit.local.line,bhunk->edit.encoding == NULL ?"(nil)" :bhunk->edit.encoding); - replacement in change.c at line 396
printf("Replacement. change: Atom, replacement: Atom, local: Local, encoding: Option<Encoding>\n"change_decode_atom(binstat, &bhunk->replacement.change);change_decode_atom(binstat, &bhunk->replacement.replacement);change_decode_local(binstat, &bhunk->replacement.local);change_decode_encoding(binstat, &bhunk->replacement.encoding - edit in change.c at line 404
printf("%d. Replacement in %s:%d (%s)\n", i + 1,bhunk->replacement.local.path,bhunk->replacement.local.line,bhunk->replacement.encoding == NULL ?"(nil)" :bhunk->replacement.encoding); - replacement in Makefile at line 48
./ani change AGBLQOQIB6DSD2APO6L2PLFXF7CRWKAD6VAWIAD6F2DTH4EIRYRQC./ani change NETL2N53SORFVLRHT2GK6EYIGK64U6E4QTCES6NGQPBYUPIOVEIAC