// spatch --c++ --dir src -I src --sp-file alloc.spatch --in-place --recursive-includes @@ expression A, B, C, D, E; @@ tbf_alloc_ul_tbf(A, B, C, D, E, ( - 1 + true | - 0 + false ) ) @@ expression A, B, C, D, E; @@ tbf_alloc_dl_tbf(A, B, C, D, E, ( - 1 + true | - 0 + false ) ) @@ identifier alloc_algorithm_a, bts, ms, tbf, cust, single, use_trx; @@ alloc_algorithm_a(struct gprs_rlcmac_bts *bts, GprsMs *ms, struct gprs_rlcmac_tbf *tbf, - uint32_t cust, uint8_t single, int use_trx) ?{ ... } @@ expression A, B, C, D, E, G; @@ alloc_algorithm_a(A, B, C, -D, E, G) @@ expression A, B, C, D, E, G; @@ alloc_algorithm_b(A, B, C, -D, E, G) @@ expression A, B, C, D, E, G; @@ alloc_algorithm_dynamic(A, B, C, -D, E, G) @@ expression X, A, B, C, D, E, G; @@ X->alloc_algorithm(A, B, C, -D, E, G)