| 3261 | // |
| 3262 | |
| 3263 | static void gen_start(const act* action, |
| 3264 | const gpre_port* port, |
| 3265 | int column, |
| 3266 | bool sending) |
| 3267 | { |
| 3268 | const TEXT* pattern1 = |
| 3269 | "%RH->startAndSend(%V1, %S1, %RL, %PN, %PL, CAST_CONST_MSG(&%PI));"; |
| 3270 | const TEXT* pattern2 = "%RH->start(%V1, %S1, %RL);"; |
| 3271 | |
| 3272 | if (port && sending) |
| 3273 | { |
| 3274 | for (const ref* reference = port->por_references; reference; reference = reference->ref_next) |
| 3275 | { |
| 3276 | if (reference->ref_field->fld_array_info) |
| 3277 | gen_get_or_put_slice(action, reference, false, column); |
| 3278 | } |
| 3279 | } |
| 3280 | |
| 3281 | PAT args; |
| 3282 | args.pat_request = action->act_request; |
| 3283 | args.pat_vector1 = status_vector(action); |
| 3284 | args.pat_port = port; |
| 3285 | args.pat_string1 = request_trans(action, action->act_request); |
| 3286 | PATTERN_expand((USHORT) column, port ? pattern1 : pattern2, &args); |
| 3287 | } |
| 3288 | |
| 3289 | |
| 3290 | //____________________________________________________________ |
no test coverage detected