| 314 | } |
| 315 | |
| 316 | static void image_add_line(struct image *img, const char *bol, size_t len, unsigned flag) |
| 317 | { |
| 318 | ALLOC_GROW(img->line, img->line_nr + 1, img->line_alloc); |
| 319 | img->line[img->line_nr].len = len; |
| 320 | img->line[img->line_nr].hash = hash_line(bol, len); |
| 321 | img->line[img->line_nr].flag = flag; |
| 322 | img->line_nr++; |
| 323 | } |
| 324 | |
| 325 | /* |
| 326 | * "buf" has the file contents to be patched (read from various sources). |
no test coverage detected