tree checksum vpatch file split hunks

all signers: phf

antecedents: vtools_vpatch vdiff_fixes_newline_gcc

press order:

vtools_genesisphf
vdiff_fixes_newline_gccphf
keccakphf
vdiff_keccakphf
vtools_fixes_bitrate_char_arrayphf
vtools_vpatchphf
vtools_fixes_static_tohexphf

patch:

- BB116548D11FB1B72BD214FDCBC29BDC260A10783555ACB33972F9FEA19332DA586048E72AED60CF809DAB53DACB8D037E12A9DE28709E8F1C67ACA1E9B9E3DE
+ D333128C42000A368C9CC922D9B71DDD408B6A5EAA58E077FBD1CD6E156753F438E5E95FCF375008363773B6D28C5ACD5887D467C3DCCB157D8716ADF617B94B
vtools/lib/xalloc.h
(46 . 9)(46 . 9)
5 /* Allocate an array of |n| objects, each with |s| bytes of memory,
6 dynamically, with error checking. |s| must be nonzero. */
7
8 inline void *xnmalloc(size_t n, size_t s);
9 static inline void *xnmalloc(size_t n, size_t s);
10
11 inline void *
12 static inline void *
13 xnmalloc(size_t n, size_t s) {
14 if (xalloc_oversized (n, s))
15 xalloc_die();
(59 . 9)(59 . 9)
17 |n| objects each of |s| bytes, with error checking. |s| must be
18 nonzero. */
19
20 inline void *xnrealloc(void *p, size_t n, size_t s);
21 static inline void *xnrealloc(void *p, size_t n, size_t s);
22
23 inline void *
24 static inline void *
25 xnrealloc(void *p, size_t n, size_t s) {
26 if (xalloc_oversized (n, s))
27 xalloc_die();
- 86D8B63E1A034DCDE84B1FADFCC9E5DA14A0A6207BEB81BBADD37F32084921E71184B8DC8316FF3FC011527EE60457E5FA0F0B72AC9B9E28F9730F1E9E91CEC7
+ 82C976F07C79876452AEBAF0569F69B314F9F7CFEEA328C72C1D16FBCE5DC80A5BA99553D9EA2B99B606957353A08E390790DE5793A13141BFED43C910A35FED
vtools/manifest
(4 . 3)(4 . 4)
32 511300 phf vdiff_keccak Vdiff hashing and output using Keccak instead of SHA512.
33 512600 phf vtools_fixes_bitrate_char_array Fixes for keccak from diana_coman, different approach to C interop.
34 514700 phf vtools_vpatch Initial vpatch tool implementation in Ada.
35 517100 phf vtools_fixes_static_tohex Fixes for xalloc's use of static inline courtesy of spyked, fix broken ToHex implementation
- F9F8125F17B849D7E49D39FF7B8C49D2B9A1ACD27B1D7A3FB449D2C9971098D1F22A64263D89D210D8C15B8AD963951D674AA4998E7823C19AB22E03C4F6373A
+ B400C9418D40715D1063D700657C8CEE23E4B6DE0D237A23BCBB5293944543DE71C1DD0FB0E9984F6DDA83B57930906C4C7479A35E88F9D32BD284B5C796DEC3
vtools/src/bits.adb
(48 . 7)(48 . 7)
40 X: Positive := 1;
41 begin
42 ToString(B, Bytes);
43 for C of S loop
44 for C of Bytes loop
45 V := Character'Pos(C);
46 S(I) := Hex_Digits(Integer(Shift_Right(V, 4) + 1));
47 I := I + 1;