@@ -1,20 +1,33 @@
@@
-struct object_id OID;
-@@
-- is_null_sha1(OID.hash)
-+ is_null_oid(&OID)
-
-@@
+expression E;
+struct object_id OID, OID2;
struct object_id *OIDPTR;
@@
-- is_null_sha1(OIDPTR->hash)
-+ is_null_oid(OIDPTR)
-
-@@
-struct object_id OID;
-@@
+(
+- is_null_sha1
++ is_null_oid
+ (
+(
+- OID.hash
++ &OID
+|
+ OIDPTR
+- ->hash
+)
+ )
+|
- sha1_to_hex(OID.hash)
+ oid_to_hex(&OID)
+|
+- sha1_to_hex_r(E, OID.hash)
++ oid_to_hex_r(E, &OID)
+|
+- hashclr(OID.hash)
++ oidclr(&OID)
+|
+- hashcmp(OID.hash, OID2.hash)
++ oidcmp(&OID, &OID2)
+)
@@
identifier f != oid_to_hex;
@@ -25,13 +38,6 @@ struct object_id *OIDPTR;
+ oid_to_hex(OIDPTR)
...>}
-@@
-expression E;
-struct object_id OID;
-@@
-- sha1_to_hex_r(E, OID.hash)
-+ oid_to_hex_r(E, &OID)
-
@@
identifier f != oid_to_hex_r;
expression E;
@@ -42,12 +48,6 @@ struct object_id *OIDPTR;
+ oid_to_hex_r(E, OIDPTR)
...>}
-@@
-struct object_id OID;
-@@
-- hashclr(OID.hash)
-+ oidclr(&OID)
-
@@
identifier f != oidclr;
struct object_id *OIDPTR;
@@ -57,12 +57,6 @@ struct object_id *OIDPTR;
+ oidclr(OIDPTR)
...>}
-@@
-struct object_id OID1, OID2;
-@@
-- hashcmp(OID1.hash, OID2.hash)
-+ oidcmp(&OID1, &OID2)
-
@@
identifier f != oidcmp;
struct object_id *OIDPTR1, OIDPTR2;
@@ -76,44 +70,35 @@ struct object_id *OIDPTR1, OIDPTR2;
struct object_id *OIDPTR;
struct object_id OID;
@@
+(
- hashcmp(OIDPTR->hash, OID.hash)
+ oidcmp(OIDPTR, &OID)
-
-@@
-struct object_id *OIDPTR;
-struct object_id OID;
-@@
+|
- hashcmp(OID.hash, OIDPTR->hash)
+ oidcmp(&OID, OIDPTR)
+)
@@
-struct object_id *OIDPTR1;
-struct object_id *OIDPTR2;
+struct object_id * OIDPTR1, OIDPTR2;
@@
+(
- oidcmp(OIDPTR1, OIDPTR2) == 0
+ oideq(OIDPTR1, OIDPTR2)
-
-@@
-identifier f != hasheq;
-expression E1, E2;
-@@
- f(...) {<...
-- hashcmp(E1, E2) == 0
-+ hasheq(E1, E2)
- ...>}
-
-@@
-struct object_id *OIDPTR1;
-struct object_id *OIDPTR2;
-@@
+|
- oidcmp(OIDPTR1, OIDPTR2) != 0
+ !oideq(OIDPTR1, OIDPTR2)
+)
@@
identifier f != hasheq;
expression E1, E2;
@@
f(...) {<...
+(
+- hashcmp(E1, E2) == 0
++ hasheq(E1, E2)
+|
- hashcmp(E1, E2) != 0
+ !hasheq(E1, E2)
+)
...>}