From fc53809803cd2bc2434e312b19a18fa36776da12 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 12 Jun 2024 05:50:40 +0200 Subject: Adding upstream version 256. Signed-off-by: Daniel Baumann --- src/shared/edit-util.h | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) (limited to 'src/shared/edit-util.h') diff --git a/src/shared/edit-util.h b/src/shared/edit-util.h index 83b3df8..9d9c890 100644 --- a/src/shared/edit-util.h +++ b/src/shared/edit-util.h @@ -7,25 +7,16 @@ #define DROPIN_MARKER_END "### Edits below this comment will be discarded" typedef struct EditFile EditFile; -typedef struct EditFileContext EditFileContext; - -struct EditFile { - EditFileContext *context; - char *path; - char *original_path; - char **comment_paths; - char *temp; - unsigned line; -}; - -struct EditFileContext { + +typedef struct EditFileContext { EditFile *files; size_t n_files; const char *marker_start; const char *marker_end; bool remove_parent; - bool overwrite_with_origin; /* whether to always overwrite target with original file */ -}; + bool overwrite_with_origin; /* Always overwrite target with original file. */ + bool stdin; /* Read contents from stdin instead of launching an editor. */ +} EditFileContext; void edit_file_context_done(EditFileContext *context); -- cgit v1.2.3