base32: shorten function names

laumann
Jan 4, 2024, 5:22 AM
CKUYZHZYTKMPCCT5JXUYPLWH2XBZOQ3NBJ5XMNT33QO4EFKOFBXQC

Dependencies

  • [2] 5D2IYPL7 change: introduce changestore, print deleted lines
  • [3] DRJRVIKO hash: Fix missing terminating null in encoding
  • [4] 733PFZJ5 prefix header guard names with ANI_
  • [5] FD4A7HCM base32: describe known limitations
  • [6] QYRJIOYP change: separate decoding and printing of hashed struct
  • [7] ZKAOPMCH change: Implement decoding of edits, atoms, positions, among others
  • [8] SMB3M6ES change: rework to make more testable
  • [9] VKLGQREY change: add base32 decode, initial deconstruction of hashed
  • [10] 2U7P5SFQ Change struct names "struct foo -> typedef struct Foo"
  • [11] YG4DZB3A add representation of hash, decode dependencies
  • [12] DKX3RO3L base32: Add encoding of hashes, print base32-encoded hashes
  • [13] XTKRT6OQ format the codebase
  • [14] Q7TKZCJP Add initial support for reading the offsets from a (fixed) change
  • [*] QA7HY2TH hunk + hash: replace abort() calls with die()

Change contents

  • edit in hash.c at line 8
    [16.69]
    [2.717]
    #include "types.h"
  • replacement in hash.c at line 31
    [3.578][3.649:692]()
    base32_hashencode(b32hash, hash->bytes);
    [3.578]
    [3.842]
    b32enc(b32hash, hash->bytes);
  • replacement in change.c at line 997
    [2.7111][2.7111:7155]()
    base32_hashdecode(contents_hash, hashstr);
    [2.7111]
    [2.7155]
    b32dec(contents_hash, hashstr);
  • replacement in change.c at line 1056
    [2.7952][2.7952:7994]()
    base32_hashencode(hashstr, hash->bytes);
    [2.7952]
    [2.7994]
    b32enc(hashstr, hash->bytes);
  • replacement in base32.h at line 10
    [3.1831][3.4062:4116]()
    void base32_hashdecode(uint8_t *dst, char const *in);
    [3.1831]
    [3.266]
    void b32dec(u8 *, char const *);
    void b32enc(char *, u8 const *);
  • edit in base32.h at line 13
    [3.267][3.4117:4171](),[3.322][3.1886:1887](),[3.4171][3.1886:1887](),[3.1886][3.1886:1887]()
    void base32_hashencode(char *dst, uint8_t const *in);
  • edit in base32.c at line 2
    [3.1949]
    [3.4172]
    #include <unistd.h>
  • edit in base32.c at line 5
    [3.4193]
    [3.323]
    #include "types.h"
  • replacement in base32.c at line 21
    [3.2791][3.2241:2273](),[3.2241][3.2241:2273]()
    static uint8_t BASE32[0x80] = {
    [3.2791]
    [3.2273]
    static u8 BASE32[0x80] = {
  • replacement in base32.c at line 51
    [3.3080][3.4194:4242]()
    base32_hashdecode(uint8_t *dst, char const *in)
    [3.3080]
    [3.3129]
    b32dec(u8 *dst, char const *in)
  • replacement in base32.c at line 54
    [3.3147][3.3147:3162]()
    uint8_t v[8];
    [3.3147]
    [3.3162]
    u8 v[8];
  • replacement in base32.c at line 90
    [3.983][3.4243:4293]()
    base32_hashencode(char *dst, uint8_t const *hash)
    [3.983]
    [3.1034]
    b32enc(char *dst, u8 const *hash)
  • replacement in base32.c at line 92
    [3.1036][3.1036:1051]()
    uint8_t b[5];
    [3.1036]
    [3.1051]
    u8 b[5];