image             343 builtin/apply.c static void add_line_info(struct image *img, const char *bol, size_t len, unsigned flag)
image             357 builtin/apply.c static void prepare_image(struct image *image, char *buf, size_t len,
image             362 builtin/apply.c 	memset(image, 0, sizeof(*image));
image             363 builtin/apply.c 	image->buf = buf;
image             364 builtin/apply.c 	image->len = len;
image             369 builtin/apply.c 	ep = image->buf + image->len;
image             370 builtin/apply.c 	cp = image->buf;
image             377 builtin/apply.c 		add_line_info(image, cp, next - cp, 0);
image             380 builtin/apply.c 	image->line = image->line_allocated;
image             383 builtin/apply.c static void clear_image(struct image *image)
image             385 builtin/apply.c 	free(image->buf);
image             386 builtin/apply.c 	free(image->line_allocated);
image             387 builtin/apply.c 	memset(image, 0, sizeof(*image));
image            2163 builtin/apply.c static void update_pre_post_images(struct image *preimage,
image            2164 builtin/apply.c 				   struct image *postimage,
image            2170 builtin/apply.c 	struct image fixed_preimage;
image            2251 builtin/apply.c static int match_fragment(struct image *img,
image            2252 builtin/apply.c 			  struct image *preimage,
image            2253 builtin/apply.c 			  struct image *postimage,
image            2508 builtin/apply.c static int find_pos(struct image *img,
image            2509 builtin/apply.c 		    struct image *preimage,
image            2510 builtin/apply.c 		    struct image *postimage,
image            2585 builtin/apply.c static void remove_first_line(struct image *img)
image            2593 builtin/apply.c static void remove_last_line(struct image *img)
image            2603 builtin/apply.c static void update_image(struct image *img,
image            2605 builtin/apply.c 			 struct image *preimage,
image            2606 builtin/apply.c 			 struct image *postimage)
image            2679 builtin/apply.c static int apply_one_fragment(struct image *img, struct fragment *frag,
image            2693 builtin/apply.c 	struct image preimage;
image            2694 builtin/apply.c 	struct image postimage;
image            2931 builtin/apply.c static int apply_binary_fragment(struct image *img, struct patch *patch)
image            2977 builtin/apply.c static int apply_binary(struct image *img, struct patch *patch)
image            3052 builtin/apply.c static int apply_fragments(struct image *img, struct patch *patch)
image            3259 builtin/apply.c static int load_preimage(struct image *image,
image            3296 builtin/apply.c 	prepare_image(image, img, len, !patch->is_binary);
image            3300 builtin/apply.c static int three_way_merge(struct image *image,
image            3324 builtin/apply.c 	clear_image(image);
image            3325 builtin/apply.c 	image->buf = result.ptr;
image            3326 builtin/apply.c 	image->len = result.size;
image            3336 builtin/apply.c static int load_current(struct image *image, struct patch *patch)
image            3369 builtin/apply.c 	prepare_image(image, img, len, !patch->is_binary);
image            3373 builtin/apply.c static int try_threeway(struct image *image, struct patch *patch,
image            3381 builtin/apply.c 	struct image tmp_image;
image            3422 builtin/apply.c 	status = three_way_merge(image, patch->new_name,
image            3446 builtin/apply.c 	struct image image;
image            3448 builtin/apply.c 	if (load_preimage(&image, patch, st, ce) < 0)
image            3452 builtin/apply.c 	    apply_fragments(&image, patch) < 0) {
image            3454 builtin/apply.c 		if (!threeway || try_threeway(&image, patch, st, ce) < 0)
image            3457 builtin/apply.c 	patch->result = image.buf;
image            3458 builtin/apply.c 	patch->resultsize = image.len;
image            3460 builtin/apply.c 	free(image.line_allocated);