| 255 | #endif /* SCRIPT_DUMP_SEGMENTS */ |
| 256 | |
| 257 | static struct splice_script_error *new_error_offset(const tal_t *ctx, |
| 258 | enum splice_script_error_type type, |
| 259 | struct token *token, |
| 260 | const char *phase, |
| 261 | int index_offset) |
| 262 | { |
| 263 | struct splice_script_error *error = tal(ctx, struct splice_script_error); |
| 264 | |
| 265 | error->type = type; |
| 266 | error->script_index = token->script_index + index_offset; |
| 267 | error->message = tal_strdup(error, ""); |
| 268 | error->phase = phase; |
| 269 | |
| 270 | return error; |
| 271 | } |
| 272 | |
| 273 | static struct splice_script_error *new_error(const tal_t *ctx, |
| 274 | enum splice_script_error_type type, |
no outgoing calls
no test coverage detected