edit-util: several cleanups to create_edit_temp_file

original_path and comment_paths can now be used
together.

Removes reference to "unit"
This commit is contained in:
Mike Yuan
2023-03-11 01:38:52 +08:00
parent a01c4bc9af
commit fa2413dd57
2 changed files with 50 additions and 43 deletions
+3 -3
View File
@@ -12,12 +12,12 @@ typedef struct EditFile {
void edit_file_free_all(EditFile **ef);
int create_edit_temp_file(
const char *new_path,
const char *target_path,
const char *original_path,
char ** const original_unit_paths,
char * const *comment_paths,
const char *marker_start,
const char *marker_end,
char **ret_tmp_fn,
char **ret_temp_filename,
unsigned *ret_edit_line);
int run_editor(const EditFile *files);