| 1 | @@ |
| 2 | identifier f != git_hash_init; |
| 3 | expression ALGO; |
| 4 | struct git_hash_ctx *CTX; |
| 5 | @@ |
| 6 | f(...) {<... |
| 7 | - ALGO->init_fn(CTX); |
| 8 | + git_hash_init(CTX, ALGO); |
| 9 | ...>} |
| 10 | |
| 11 | @@ |
| 12 | identifier f != git_hash_clone; |
| 13 | expression ALGO; |
| 14 | struct git_hash_ctx *SRC; |
| 15 | struct git_hash_ctx *DST; |
| 16 | @@ |
| 17 | f(...) {<... |
| 18 | - ALGO->clone_fn(DST, SRC); |
| 19 | + git_hash_clone(DST, SRC); |
| 20 | ...>} |
| 21 | |
| 22 | @@ |
| 23 | identifier f != git_hash_update; |
| 24 | expression ALGO; |
| 25 | struct git_hash_ctx *CTX; |
| 26 | expression list ARGS; |
| 27 | @@ |
| 28 | f(...) {<... |
| 29 | - ALGO->update_fn(CTX, ARGS); |
| 30 | + git_hash_update(CTX, ARGS); |
| 31 | ...>} |
| 32 | |
| 33 | @@ |
| 34 | identifier f != git_hash_final; |
| 35 | expression ALGO; |
| 36 | struct git_hash_ctx *CTX; |
| 37 | expression list ARGS; |
| 38 | @@ |
| 39 | f(...) {<... |
| 40 | - ALGO->final_fn(ARGS, CTX); |
| 41 | + git_hash_final(ARGS, CTX); |
| 42 | ...>} |
| 43 | |
| 44 | @@ |
| 45 | identifier f != git_hash_final_oid; |
| 46 | expression ALGO; |
| 47 | struct git_hash_ctx *CTX; |
| 48 | expression list ARGS; |
| 49 | @@ |
| 50 | f(...) {<... |
| 51 | - ALGO->final_oid_fn(ARGS, CTX); |
| 52 | + git_hash_final_oid(ARGS, CTX); |
| 53 | ...>} |
| 54 | |
| 55 | @@ |
| 56 | identifier f != git_hash_discard; |
| 57 | expression ALGO; |
| 58 | struct git_hash_ctx *CTX; |
| 59 | @@ |
| 60 | f(...) {<... |
| 61 | - ALGO->discard_fn(CTX); |
| 62 | + git_hash_discard(CTX); |
| 63 | ...>} |