replacement in vertex.h at line 20
[10.396]→[10.0:17](∅→∅),
[10.17]→[10.29:43](∅→∅) − typedef struct {
− Hash change;
+ struct position {
+ struct hash change;
replacement in vertex.h at line 23
[10.59]→[10.17:29](∅→∅),
[10.17]→[10.17:29](∅→∅) replacement in vertex.h at line 25
replacement in vertex.h at line 27
− Position first; /* Reserve space for the first Position, most changes appear to have just one */
− Position *entries;
− } Positionlist;
+ struct position
+ first; /* Reserve space for the first Position, most changes appear to have just one */
+ struct position *entries;
+ };
replacement in vertex.h at line 36
[10.539]→[10.30:47](∅→∅),
[10.47]→[10.226:240](∅→∅) − typedef struct {
− Hash change;
+ struct vertex {
+ struct hash change;
replacement in vertex.h at line 39
[10.285]→[10.48:58](∅→∅),
[10.621]→[10.48:58](∅→∅) replacement in scaffold.h at line 11
− void die(const char *err, ...) __attribute__((format(printf, 1, 2)));
+ _Noreturn void die(const char *err, ...) __attribute__((format(printf, 1, 2)));
replacement in hunk.h at line 4
replacement in hunk.h at line 7
[10.63]→[10.109:118](∅→∅),
[10.67]→[10.109:118](∅→∅),
[10.372]→[10.109:118](∅→∅),
[10.109]→[10.109:118](∅→∅) replacement in hunk.h at line 9
[10.736]→[10.119:134](∅→∅) replacement in hunk.h at line 23
[10.961]→[10.135:151](∅→∅) replacement in hunk.h at line 25
[10.965]→[10.152:169](∅→∅),
[10.169]→[3.0:22](∅→∅) − typedef struct {
− Atom del;
− Atom add;
+ struct filemove {
+ struct atom del;
+ struct atom add;
replacement in hunk.h at line 29
[10.180]→[10.180:192](∅→∅) replacement in hunk.h at line 31
− typedef struct {
− Atom del;
− Atom contents; /* FIXME Option<Atom> */
+ struct filedel {
+ struct atom del;
+ struct atom contents; /* FIXME Option<struct atom> */
replacement in hunk.h at line 36
replacement in hunk.h at line 38
[10.1001]→[10.193:210](∅→∅),
[10.210]→[3.131:185](∅→∅) − typedef struct {
− Atom undel;
− Atom contents; /* FIXME Option<Atom> */
+ struct fileundel {
+ struct atom undel;
+ struct atom contents; /* FIXME Option<struct atom> */
replacement in hunk.h at line 43
replacement in hunk.h at line 45
− typedef struct {
− Atom addname;
− Atom addinode;
− Atom contents; /* FIXME Option<Atom> */
+ struct fileadd {
+ struct atom addname;
+ struct atom addinode;
+ struct atom contents; /* FIXME Option<struct atom> */
replacement in hunk.h at line 51
replacement in hunk.h at line 53
[3.352]→[3.352:369](∅→∅),
[3.369]→[10.373:401](∅→∅),
[10.210]→[10.373:401](∅→∅) − typedef struct {
− Atom change;
− Local local;
+ struct edit {
+ struct atom change;
+ struct local local;
replacement in hunk.h at line 57
[10.416]→[10.211:219](∅→∅),
[10.1031]→[10.211:219](∅→∅) replacement in hunk.h at line 59
[10.1035]→[10.220:237](∅→∅),
[10.237]→[10.0:33](∅→∅),
[10.33]→[10.238:252](∅→∅),
[10.1095]→[10.238:252](∅→∅) − typedef struct {
− Atom change;
− Atom replacement;
− Local local;
+ struct replacement {
+ struct atom change;
+ struct atom replacement;
+ struct local local;
replacement in hunk.h at line 64
[10.49]→[10.252:267](∅→∅),
[10.252]→[10.252:267](∅→∅) replacement in hunk.h at line 66
[10.1120]→[10.268:309](∅→∅) − typedef struct {
− basehunktype hunktype;
+ struct basehunk {
+ enum basehunktype hunktype;
replacement in hunk.h at line 69
[10.1178]→[10.310:331](∅→∅),
[10.331]→[3.370:431](∅→∅),
[3.431]→[10.331:371](∅→∅),
[10.331]→[10.331:371](∅→∅) − Filemove filemove;
− Filedel filedel;
− Fileundel fileundel;
− Fileadd fileadd;
− Edit edit;
− Replacement replacement;
+ struct filemove filemove;
+ struct filedel filedel;
+ struct fileundel fileundel;
+ struct fileadd fileadd;
+ struct edit edit;
+ struct replacement replacement;
replacement in hunk.h at line 76
[10.421]→[10.372:384](∅→∅),
[10.1272]→[10.372:384](∅→∅) replacement in hunk.h at line 78
[10.1276]→[10.422:439](∅→∅) replacement in hunk.h at line 80
[10.452]→[10.452:484](∅→∅) − Basehunk *entries;
− } Hunklist;
+ struct basehunk *entries;
+ };
replacement in hunk.h at line 83
[10.485]→[10.385:435](∅→∅),
[10.1276]→[10.385:435](∅→∅),
[10.435]→[10.486:530](∅→∅) − const char *hunk_basehunk_type_str(basehunktype);
− void hunk_hunklistinit(Hunklist *, size_t);
+ const char *hunk_basehunk_type_str(enum basehunktype);
+ void hunk_hunklistinit(struct hunklist *, size_t);
replacement in hunk.c at line 12
[10.1445]→[10.458:505](∅→∅) − hunk_basehunk_type_str(basehunktype hunk_type)
+ hunk_basehunk_type_str(enum basehunktype hunk_type)
replacement in hunk.c at line 47
[10.618]→[10.618:668](∅→∅) − hunk_hunklistinit(Hunklist *hunklist, size_t len)
+ hunk_hunklistinit(struct hunklist *hunklist, size_t len)
replacement in hunk.c at line 50
[10.692]→[10.692:746](∅→∅) − hunklist->entries = xmalloc(sizeof(Basehunk) * len);
+ hunklist->entries = xmalloc(sizeof(struct basehunk) * len);
replacement in hash.h at line 9
[10.131]→[10.506:523](∅→∅) replacement in hash.h at line 13
[10.225]→[10.524:532](∅→∅) replacement in hash.h at line 15
[10.229]→[10.533:550](∅→∅) replacement in hash.h at line 17
[10.261]→[10.551:579](∅→∅) − Hash *entries;
− } Hashlist;
+ struct hash *entries;
+ };
replacement in hash.h at line 20
[10.288]→[10.747:773](∅→∅),
[10.773]→[10.580:604](∅→∅),
[10.288]→[10.580:604](∅→∅) − void hashprintln(Hash *);
− void hashprint(Hash *);
+ void hashprintln(struct hash *);
+ void hashprint(struct hash *);
replacement in hash.h at line 23
− void hashlist_free(Hashlist *h);
+ void hashlist_free(struct hashlist *h);
replacement in hash.c at line 12
[10.445]→[10.774:798](∅→∅) − hashprintln(Hash *hash)
+ hashprintln(struct hash *hash)
replacement in hash.c at line 19
[10.841]→[10.626:648](∅→∅),
[10.445]→[10.626:648](∅→∅) + hashprint(struct hash *hash)
replacement in hash.c at line 38
− hashlist_free(Hashlist *h)
+ hashlist_free(struct hashlist *h)
replacement in change.h at line 16
[10.307]→[10.1748:1765](∅→∅) replacement in change.h at line 24
[10.409]→[10.1766:1777](∅→∅) replacement in change.h at line 36
[10.810]→[10.1778:1795](∅→∅) replacement in change.h at line 39
[10.1817]→[10.1817:1832](∅→∅) replacement in change.h at line 42
[10.169]→[10.1833:1850](∅→∅) replacement in change.h at line 44
[10.198]→[10.1851:1884](∅→∅) − Authorentry *entries;
− } Author;
+ struct authorentry *entries;
+ };
replacement in change.h at line 50
[10.1939]→[10.1939:1956](∅→∅) replacement in change.h at line 52
[10.1969]→[10.1969:1994](∅→∅) − Author *map;
− } Authors;
+ struct author *map;
+ };
replacement in change.h at line 55
[10.285]→[10.1995:2233](∅→∅) − typedef struct {
− str message; /* the "commit" message */
− str description; /* the other undescribed part of a change */
− str timestamp; /* yes, as a string */
− Authors authors; /* a list of "key"="value" collections */
− } Changeheader;
+ struct changeheader {
+ str message; /* the "commit" message */
+ str description; /* the other undescribed part of a change */
+ str timestamp; /* yes, as a string */
+ struct authors authors; /* a list of "key"="value" collections */
+ };
replacement in change.h at line 69
[10.458]→[10.2234:2251](∅→∅),
[10.2251]→[10.145:214](∅→∅),
[10.214]→[10.2252:2374](∅→∅),
[10.542]→[10.2252:2374](∅→∅) − typedef struct {
− uint64_t version; /* same as in offsets? here to be hashed! */
− Changeheader header;
− Hashlist dependencies; /* array of hashes */
− Hashlist extraknown; /* another array of hashes */
+ struct hashed {
+ uint64_t version; /* same as in offsets? here to be hashed! */
+ struct changeheader header;
+ struct hashlist dependencies; /* array of hashes */
+ struct hashlist extraknown; /* another array of hashes */
replacement in change.h at line 75
[10.888]→[10.888:905](∅→∅),
[10.905]→[10.2374:2384](∅→∅),
[10.2374]→[10.2374:2384](∅→∅) − Hunklist hunks;
− } Hashed;
+ struct hunklist hunks;
+ };
replacement in change.h at line 84
[10.959]→[10.2385:2424](∅→∅) − int decode_offsets(int fd, Offsets *);
+ int decode_offsets(int fd, struct offsets *);
replacement in change.c at line 39
[10.1493]→[10.2446:2490](∅→∅) − change_decode_offsets(int fd, Offsets *off)
+ change_decode_offsets(int fd, struct offsets *off)
replacement in change.c at line 43
[10.1587]→[10.2491:2509](∅→∅) + struct bincode binstat;
replacement in change.c at line 118
− change_readhash(Bincode *binstat, uint8_t *dest, uint8_t variant)
+ change_readhash(struct bincode *binstat, uint8_t *dest, uint8_t variant)
replacement in change.c at line 133
[10.988]→[10.2510:2569](∅→∅),
[10.6]→[10.2510:2569](∅→∅) − change_decode_hashlist(Bincode *binstat, Hashlist *target)
+ change_decode_hashlist(struct bincode *binstat, struct hashlist *target)
replacement in change.c at line 140
[10.162]→[10.2570:2618](∅→∅) − target->entries = xmalloc(sizeof(Hash) * len);
+ target->entries = xmalloc(sizeof(struct hash) * len);
replacement in change.c at line 152
[10.1081]→[10.1081:1137](∅→∅) − change_decode_position(Bincode *binstat, Position *pos)
+ change_decode_position(struct bincode *binstat, struct position *pos)
replacement in change.c at line 165
[10.1430]→[10.1430:1480](∅→∅) − change_decode_vertex(Bincode *binstat, Vertex *v)
+ change_decode_vertex(struct bincode *binstat, struct vertex *v)
replacement in change.c at line 167
[10.1482]→[10.1482:1495](∅→∅) replacement in change.c at line 181
[10.1955]→[10.1955:2012](∅→∅) − change_decode_introducedby(Bincode *binstat, Hash *hash)
+ change_decode_introducedby(struct bincode *binstat, struct hash *hash)
replacement in change.c at line 193
[10.2477]→[10.2477:2529](∅→∅) − change_decode_newedge(Bincode *binstat, Edge *edge)
+ change_decode_newedge(struct bincode *binstat, struct edge *edge)
replacement in change.c at line 204
[10.2846]→[10.2846:2914](∅→∅) − change_decode_positionlist(Bincode *binstat, Positionlist *poslist)
+ change_decode_positionlist(struct bincode *binstat, struct positionlist *poslist)
replacement in change.c at line 211
[10.2999]→[10.2999:3059](∅→∅) − poslist->entries = xmalloc(sizeof(Position) * (len - 1));
+ poslist->entries = xmalloc(sizeof(struct position) * (len - 1));
replacement in change.c at line 220
[10.3233]→[10.3233:3297](∅→∅) − change_decode_newvertex(Bincode *binstat, Newvertex *newvertex)
+ change_decode_newvertex(struct bincode *binstat, struct newvertex *newvertex)
replacement in change.c at line 235
− change_decode_edgemap(Bincode *binstat, Edgemap *edgemap)
+ change_decode_edgemap(struct bincode *binstat, struct edgemap *edgemap)
replacement in change.c at line 240
[10.125]→[10.125:180](∅→∅) − edgemap->edges.entries = xmalloc(sizeof(Edge) * len);
+ edgemap->edges.entries = xmalloc(sizeof(struct edge) * len);
replacement in change.c at line 249
[10.353]→[10.353:402](∅→∅) − change_decode_atom(Bincode *binstat, Atom *atom)
+ change_decode_atom(struct bincode *binstat, struct atom *atom)
replacement in change.c at line 270
[10.4370]→[10.4370:4422](∅→∅) − change_decode_local(Bincode *binstat, Local *local)
+ change_decode_local(struct bincode *binstat, struct local *local)
replacement in change.c at line 280
[10.4572]→[10.4572:4630](∅→∅) − change_decode_encoding(Bincode *binstat, char **encoding)
+ change_decode_encoding(struct bincode *binstat, char **encoding)
replacement in change.c at line 293
[10.4830]→[10.4830:4884](∅→∅) − change_decode_hunks(Bincode *binstat, Hashed *hashed)
+ change_decode_hunks(struct bincode *binstat, struct hashed *hashed)
replacement in change.c at line 295
[10.3855]→[10.3855:3870](∅→∅) replacement in change.c at line 302
[10.3940]→[10.4928:4975](∅→∅) − Basehunk *bhunk = &hashed->hunks.entries[i];
+ struct basehunk *bhunk = &hashed->hunks.entries[i];
replacement in change.c at line 307
[10.4099]→[10.5127:5189](∅→∅) − /* An edit is a (1) Atom (2) Local (3) Option<Encoding> */
+ /* An edit is a (1) struct atom (2) Local (3) Option<Encoding> */
replacement in change.c at line 348
[10.1059]→[10.3013:3053](∅→∅) − uint8_t *expected_hash, Hashed *hashed
+ uint8_t *expected_hash, struct hashed *hashed
replacement in change.c at line 356
[10.648]→[10.3054:3072](∅→∅) + struct bincode binstat;
replacement in change.c at line 408
[10.358]→[10.3073:3134](∅→∅) − hashed->header.authors.map = xmalloc(sizeof(Author) * len);
+ hashed->header.authors.map = xmalloc(sizeof(struct author) * len);
replacement in change.c at line 414
[10.522]→[10.3135:3169](∅→∅) − xmalloc(sizeof(Author) * len);
+ xmalloc(sizeof(struct author) * len);
replacement in change.c at line 461
[10.1722]→[10.3227:3270](∅→∅) − change_read_contents(int fd, Offsets *off)
+ change_read_contents(int fd, struct offsets *off)
replacement in change.c at line 469
− print_positionlist(Positionlist *plist)
+ print_positionlist(struct positionlist *plist)
replacement in change.c at line 471
replacement in change.c at line 498
[10.348]→[10.348:387](∅→∅) − print_atom(Atom *a, uint8_t *contents)
+ print_atom(struct atom *a, uint8_t *contents)
replacement in change.c at line 500
[10.389]→[10.389:417](∅→∅) − Newvertex *v;
− Edgemap *m;
+ struct newvertex *v;
+ struct edgemap *m;
replacement in change.c at line 553
[10.258]→[10.258:306](∅→∅) − print_change(Hashed *hashed, uint8_t *contents)
+ print_change(struct hashed *hashed, uint8_t *contents)
replacement in change.c at line 587
[10.1249]→[10.1249:1295](∅→∅) − Basehunk *hunk = &hashed->hunks.entries[i];
+ struct basehunk *hunk = &hashed->hunks.entries[i];
replacement in change.c at line 593
[10.15]→[10.1404:1455](∅→∅),
[10.1404]→[10.1404:1455](∅→∅) − Edit *e = &hunk->edit;
− Atom *c = &e->change;
+ struct edit *e = &hunk->edit;
+ struct atom *c = &e->change;
replacement in change.c at line 602
[10.42]→[10.1612:1652](∅→∅),
[10.1612]→[10.1612:1652](∅→∅),
[10.1652]→[10.43:101](∅→∅) − Replacement *r = &hunk->replacement;
− Atom *c = &r->change;
− Atom *ratm = &r->replacement;
+ struct replacement *r = &hunk->replacement;
+ struct atom *c =
+ &r->change; /* Expected to be an edgemap */
+ struct atom *replacement =
+ &r->replacement; /* Expected to be a newvertex */
replacement in change.c at line 644
[10.121]→[10.3271:3285](∅→∅) replacement in change.c at line 649
[9.32]→[10.3286:3302](∅→∅),
[10.147]→[10.3286:3302](∅→∅),
[10.2126]→[10.3286:3302](∅→∅) replacement in bincode.h at line 20
[10.1998]→[10.3564:3581](∅→∅) replacement in bincode.h at line 23
[10.867]→[10.3582:3593](∅→∅) replacement in bincode.h at line 31
[10.2156]→[10.3594:3736](∅→∅) − uint8_t bincode_getu8(Bincode *);
− uint16_t bincode_getu16(Bincode *);
− uint32_t bincode_getu32(Bincode *);
− uint64_t bincode_getu64(Bincode *);
+ uint8_t bincode_getu8(struct bincode *);
+ uint16_t bincode_getu16(struct bincode *);
+ uint32_t bincode_getu32(struct bincode *);
+ uint64_t bincode_getu64(struct bincode *);
replacement in bincode.h at line 44
[10.2502]→[10.3737:3831](∅→∅) − char *bincode_getstr(Bincode *, size_t);
− void bincode_getbytes(Bincode *, uint8_t *, size_t);
+ char *bincode_getstr(struct bincode *, size_t);
+ void bincode_getbytes(struct bincode *, uint8_t *, size_t);
replacement in bincode.c at line 11
[10.1130]→[10.3854:3880](∅→∅) − bincode_getu8(Bincode *s)
+ bincode_getu8(struct bincode *s)
replacement in bincode.c at line 23
[10.2866]→[10.3881:3908](∅→∅) − bincode_getu16(Bincode *s)
+ bincode_getu16(struct bincode *s)
replacement in bincode.c at line 37
[10.2953]→[10.3909:3936](∅→∅) − bincode_getu32(Bincode *s)
+ bincode_getu32(struct bincode *s)
replacement in bincode.c at line 52
[10.3092]→[10.3937:3964](∅→∅) − bincode_getu64(Bincode *s)
+ bincode_getu64(struct bincode *s)
replacement in bincode.c at line 69
[10.3329]→[10.3965:4004](∅→∅) − bincode_getstr(Bincode *s, size_t len)
+ bincode_getstr(struct bincode *s, size_t len)
replacement in bincode.c at line 85
[10.4891]→[10.4005:4061](∅→∅) − bincode_getbytes(Bincode *s, uint8_t *dest, size_t len)
+ bincode_getbytes(struct bincode *s, uint8_t *dest, size_t len)
replacement in atom.h at line 10
[10.5201]→[10.4294:4309](∅→∅) replacement in atom.h at line 13
[10.5241]→[10.4310:4322](∅→∅) replacement in atom.h at line 15
[10.5245]→[10.4323:4340](∅→∅) replacement in atom.h at line 18
[10.5805]→[10.5805:5890](∅→∅) − Position from;
− Vertex to;
− Hash introducedby; /* FIXME Should be Option */
− } Edge;
+ struct position from;
+ struct vertex to;
+ struct hash introducedby; /* FIXME Should be Option */
+ };
replacement in atom.h at line 23
[10.5891]→[10.5891:5908](∅→∅) replacement in atom.h at line 25
[10.5921]→[10.5921:5949](∅→∅) − Edge *entries;
− } Edgelist;
+ struct edge *entries;
+ };
replacement in atom.h at line 28
[10.5950]→[10.5950:6019](∅→∅) − typedef struct {
− Positionlist upcontext;
− Positionlist downcontext;
+ struct newvertex {
+ struct positionlist upcontext;
+ struct positionlist downcontext;
replacement in atom.h at line 34
[10.5446]→[10.6020:6037](∅→∅),
[10.6037]→[10.4402:4415](∅→∅),
[10.5530]→[10.4402:4415](∅→∅) − Position inode;
− } Newvertex;
+ struct position inode;
+ };
replacement in atom.h at line 37
[10.4416]→[10.4416:4433](∅→∅),
[10.4433]→[10.6038:6072](∅→∅),
[10.6072]→[10.4433:4444](∅→∅),
[10.4433]→[10.4433:4444](∅→∅) − typedef struct {
− Edgelist edges;
− Position inode;
− } Edgemap;
+ struct edgemap {
+ struct edgelist edges;
+ struct position inode;
+ };
replacement in atom.h at line 42
[10.5534]→[2.0:17](∅→∅),
[2.17]→[10.4445:4465](∅→∅),
[10.5548]→[10.4445:4465](∅→∅) − typedef struct {
− atomtype atomtype;
+ struct atom {
+ enum atomtype atomtype;
replacement in atom.h at line 45
[10.5584]→[10.4466:4508](∅→∅) − Newvertex newvertex;
− Edgemap edgemap;
+ struct newvertex newvertex;
+ struct edgemap edgemap;
replacement in atom.h at line 48
replacement in ani.c at line 21
[10.3226]→[10.4531:4548](∅→∅) replacement in ani.c at line 25
[8.1851]→[10.4549:4556](∅→∅),
[10.1237]→[10.4549:4556](∅→∅) replacement in ani.c at line 27
[10.1241]→[10.4557:4583](∅→∅) − static Cmd commands[] = {
+ static struct cmd commands[] = {
replacement in ani.c at line 42
[10.1354]→[10.4584:4597](∅→∅) replacement in ani.c at line 46
[4.86]→[10.4598:4607](∅→∅),
[10.1408]→[10.4598:4607](∅→∅) replacement in ani.c at line 60
[8.1947]→[10.4608:4623](∅→∅),
[10.350]→[10.4608:4623](∅→∅)