tree checksum vpatch file split hunks
all signers: phf
antecedents: vtools_vpatch vdiff_fixes_newline_gcc
press order:
vtools_genesis | phf |
vdiff_fixes_newline_gcc | phf |
keccak | phf |
vdiff_keccak | phf |
vtools_fixes_bitrate_char_array | phf |
vtools_vpatch | phf |
vtools_fixes_static_tohex | phf |
patch:
(46 . 9)(46 . 9)- 86D8B63E1A034DCDE84B1FADFCC9E5DA14A0A6207BEB81BBADD37F32084921E71184B8DC8316FF3FC011527EE60457E5FA0F0B72AC9B9E28F9730F1E9E91CEC7
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();
(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(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;