]>
Commit | Line | Data |
---|---|---|
db1d80b8 | 1 | @@ |
6afedba8 | 2 | struct object_id OID; |
db1d80b8 | 3 | @@ |
6afedba8 SG |
4 | - is_null_sha1(OID.hash) |
5 | + is_null_oid(&OID) | |
db1d80b8 | 6 | |
7 | @@ | |
6afedba8 | 8 | struct object_id *OIDPTR; |
db1d80b8 | 9 | @@ |
6afedba8 SG |
10 | - is_null_sha1(OIDPTR->hash) |
11 | + is_null_oid(OIDPTR) | |
db1d80b8 | 12 | |
13 | @@ | |
6afedba8 | 14 | struct object_id OID; |
db1d80b8 | 15 | @@ |
6afedba8 SG |
16 | - sha1_to_hex(OID.hash) |
17 | + oid_to_hex(&OID) | |
db1d80b8 | 18 | |
19 | @@ | |
c2bb0c1d | 20 | identifier f != oid_to_hex; |
6afedba8 | 21 | struct object_id *OIDPTR; |
db1d80b8 | 22 | @@ |
4d168e74 | 23 | f(...) {<... |
6afedba8 SG |
24 | - sha1_to_hex(OIDPTR->hash) |
25 | + oid_to_hex(OIDPTR) | |
4d168e74 | 26 | ...>} |
db1d80b8 | 27 | |
28 | @@ | |
6afedba8 SG |
29 | expression E; |
30 | struct object_id OID; | |
db1d80b8 | 31 | @@ |
6afedba8 SG |
32 | - sha1_to_hex_r(E, OID.hash) |
33 | + oid_to_hex_r(E, &OID) | |
db1d80b8 | 34 | |
35 | @@ | |
c2bb0c1d | 36 | identifier f != oid_to_hex_r; |
6afedba8 SG |
37 | expression E; |
38 | struct object_id *OIDPTR; | |
db1d80b8 | 39 | @@ |
4d168e74 | 40 | f(...) {<... |
6afedba8 SG |
41 | - sha1_to_hex_r(E, OIDPTR->hash) |
42 | + oid_to_hex_r(E, OIDPTR) | |
4d168e74 | 43 | ...>} |
db1d80b8 | 44 | |
45 | @@ | |
6afedba8 | 46 | struct object_id OID; |
db1d80b8 | 47 | @@ |
6afedba8 SG |
48 | - hashclr(OID.hash) |
49 | + oidclr(&OID) | |
db1d80b8 | 50 | |
51 | @@ | |
c2bb0c1d | 52 | identifier f != oidclr; |
6afedba8 | 53 | struct object_id *OIDPTR; |
db1d80b8 | 54 | @@ |
4d168e74 | 55 | f(...) {<... |
6afedba8 SG |
56 | - hashclr(OIDPTR->hash) |
57 | + oidclr(OIDPTR) | |
4d168e74 | 58 | ...>} |
db1d80b8 | 59 | |
60 | @@ | |
6afedba8 | 61 | struct object_id OID1, OID2; |
db1d80b8 | 62 | @@ |
6afedba8 SG |
63 | - hashcmp(OID1.hash, OID2.hash) |
64 | + oidcmp(&OID1, &OID2) | |
db1d80b8 | 65 | |
66 | @@ | |
c2bb0c1d | 67 | identifier f != oidcmp; |
6afedba8 | 68 | struct object_id *OIDPTR1, OIDPTR2; |
db1d80b8 | 69 | @@ |
4d168e74 | 70 | f(...) {<... |
6afedba8 SG |
71 | - hashcmp(OIDPTR1->hash, OIDPTR2->hash) |
72 | + oidcmp(OIDPTR1, OIDPTR2) | |
4d168e74 | 73 | ...>} |
db1d80b8 | 74 | |
75 | @@ | |
6afedba8 SG |
76 | struct object_id *OIDPTR; |
77 | struct object_id OID; | |
db1d80b8 | 78 | @@ |
6afedba8 SG |
79 | - hashcmp(OIDPTR->hash, OID.hash) |
80 | + oidcmp(OIDPTR, &OID) | |
db1d80b8 | 81 | |
82 | @@ | |
6afedba8 SG |
83 | struct object_id *OIDPTR; |
84 | struct object_id OID; | |
db1d80b8 | 85 | @@ |
6afedba8 SG |
86 | - hashcmp(OID.hash, OIDPTR->hash) |
87 | + oidcmp(&OID, OIDPTR) | |
db1d80b8 | 88 | |
4a7e27e9 | 89 | @@ |
6afedba8 SG |
90 | struct object_id *OIDPTR1; |
91 | struct object_id *OIDPTR2; | |
4a7e27e9 | 92 | @@ |
6afedba8 SG |
93 | - oidcmp(OIDPTR1, OIDPTR2) == 0 |
94 | + oideq(OIDPTR1, OIDPTR2) | |
e3ff0683 JK |
95 | |
96 | @@ | |
97 | identifier f != hasheq; | |
98 | expression E1, E2; | |
99 | @@ | |
100 | f(...) {<... | |
101 | - hashcmp(E1, E2) == 0 | |
102 | + hasheq(E1, E2) | |
103 | ...>} | |
9001dc2a JK |
104 | |
105 | @@ | |
6afedba8 SG |
106 | struct object_id *OIDPTR1; |
107 | struct object_id *OIDPTR2; | |
9001dc2a | 108 | @@ |
6afedba8 SG |
109 | - oidcmp(OIDPTR1, OIDPTR2) != 0 |
110 | + !oideq(OIDPTR1, OIDPTR2) | |
67947c34 JK |
111 | |
112 | @@ | |
113 | identifier f != hasheq; | |
114 | expression E1, E2; | |
115 | @@ | |
116 | f(...) {<... | |
117 | - hashcmp(E1, E2) != 0 | |
118 | + !hasheq(E1, E2) | |
119 | ...>} |