mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-29 20:42:23 +00:00
config: Rename the delete
callback name
`delete` is a reserved keyword in C++.
This commit is contained in:
parent
06fcf057b6
commit
9dd4c3e806
@ -30,7 +30,7 @@ struct git_config_file {
|
|||||||
int (*open)(struct git_config_file *);
|
int (*open)(struct git_config_file *);
|
||||||
int (*get)(struct git_config_file *, const char *key, const char **value);
|
int (*get)(struct git_config_file *, const char *key, const char **value);
|
||||||
int (*set)(struct git_config_file *, const char *key, const char *value);
|
int (*set)(struct git_config_file *, const char *key, const char *value);
|
||||||
int (*delete)(struct git_config_file *, const char *key);
|
int (*del)(struct git_config_file *, const char *key);
|
||||||
int (*foreach)(struct git_config_file *, int (*fn)(const char *, const char *, void *), void *data);
|
int (*foreach)(struct git_config_file *, int (*fn)(const char *, const char *, void *), void *data);
|
||||||
void (*free)(struct git_config_file *);
|
void (*free)(struct git_config_file *);
|
||||||
};
|
};
|
||||||
|
@ -171,7 +171,7 @@ int git_config_delete(git_config *cfg, const char *name)
|
|||||||
internal = git_vector_get(&cfg->files, 0);
|
internal = git_vector_get(&cfg->files, 0);
|
||||||
file = internal->file;
|
file = internal->file;
|
||||||
|
|
||||||
return file->delete(file, name);
|
return file->del(file, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**************
|
/**************
|
||||||
|
@ -452,7 +452,7 @@ int git_config_file__ondisk(git_config_file **out, const char *path)
|
|||||||
backend->parent.open = config_open;
|
backend->parent.open = config_open;
|
||||||
backend->parent.get = config_get;
|
backend->parent.get = config_get;
|
||||||
backend->parent.set = config_set;
|
backend->parent.set = config_set;
|
||||||
backend->parent.delete = config_delete;
|
backend->parent.del = config_delete;
|
||||||
backend->parent.foreach = file_foreach;
|
backend->parent.foreach = file_foreach;
|
||||||
backend->parent.free = backend_free;
|
backend->parent.free = backend_free;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user