refs: use designated initializers for "struct ref_iterator_vtable"
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
32bff617c6
commit
e2f8acb6a0
@ -220,8 +220,9 @@ static int debug_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable debug_ref_iterator_vtable = {
|
||||
debug_ref_iterator_advance, debug_ref_iterator_peel,
|
||||
debug_ref_iterator_abort
|
||||
.advance = debug_ref_iterator_advance,
|
||||
.peel = debug_ref_iterator_peel,
|
||||
.abort = debug_ref_iterator_abort,
|
||||
};
|
||||
|
||||
static struct ref_iterator *
|
||||
|
@ -822,9 +822,9 @@ static int files_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable files_ref_iterator_vtable = {
|
||||
files_ref_iterator_advance,
|
||||
files_ref_iterator_peel,
|
||||
files_ref_iterator_abort
|
||||
.advance = files_ref_iterator_advance,
|
||||
.peel = files_ref_iterator_peel,
|
||||
.abort = files_ref_iterator_abort,
|
||||
};
|
||||
|
||||
static struct ref_iterator *files_ref_iterator_begin(
|
||||
@ -2231,9 +2231,9 @@ static int files_reflog_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable files_reflog_iterator_vtable = {
|
||||
files_reflog_iterator_advance,
|
||||
files_reflog_iterator_peel,
|
||||
files_reflog_iterator_abort
|
||||
.advance = files_reflog_iterator_advance,
|
||||
.peel = files_reflog_iterator_peel,
|
||||
.abort = files_reflog_iterator_abort,
|
||||
};
|
||||
|
||||
static struct ref_iterator *reflog_iterator_begin(struct ref_store *ref_store,
|
||||
|
@ -64,9 +64,9 @@ static int empty_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable empty_ref_iterator_vtable = {
|
||||
empty_ref_iterator_advance,
|
||||
empty_ref_iterator_peel,
|
||||
empty_ref_iterator_abort
|
||||
.advance = empty_ref_iterator_advance,
|
||||
.peel = empty_ref_iterator_peel,
|
||||
.abort = empty_ref_iterator_abort,
|
||||
};
|
||||
|
||||
struct ref_iterator *empty_ref_iterator_begin(void)
|
||||
@ -201,9 +201,9 @@ static int merge_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable merge_ref_iterator_vtable = {
|
||||
merge_ref_iterator_advance,
|
||||
merge_ref_iterator_peel,
|
||||
merge_ref_iterator_abort
|
||||
.advance = merge_ref_iterator_advance,
|
||||
.peel = merge_ref_iterator_peel,
|
||||
.abort = merge_ref_iterator_abort,
|
||||
};
|
||||
|
||||
struct ref_iterator *merge_ref_iterator_begin(
|
||||
@ -378,9 +378,9 @@ static int prefix_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable prefix_ref_iterator_vtable = {
|
||||
prefix_ref_iterator_advance,
|
||||
prefix_ref_iterator_peel,
|
||||
prefix_ref_iterator_abort
|
||||
.advance = prefix_ref_iterator_advance,
|
||||
.peel = prefix_ref_iterator_peel,
|
||||
.abort = prefix_ref_iterator_abort,
|
||||
};
|
||||
|
||||
struct ref_iterator *prefix_ref_iterator_begin(struct ref_iterator *iter0,
|
||||
|
@ -911,9 +911,9 @@ static int packed_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable packed_ref_iterator_vtable = {
|
||||
packed_ref_iterator_advance,
|
||||
packed_ref_iterator_peel,
|
||||
packed_ref_iterator_abort
|
||||
.advance = packed_ref_iterator_advance,
|
||||
.peel = packed_ref_iterator_peel,
|
||||
.abort = packed_ref_iterator_abort
|
||||
};
|
||||
|
||||
static struct ref_iterator *packed_ref_iterator_begin(
|
||||
|
@ -456,9 +456,9 @@ static int cache_ref_iterator_abort(struct ref_iterator *ref_iterator)
|
||||
}
|
||||
|
||||
static struct ref_iterator_vtable cache_ref_iterator_vtable = {
|
||||
cache_ref_iterator_advance,
|
||||
cache_ref_iterator_peel,
|
||||
cache_ref_iterator_abort
|
||||
.advance = cache_ref_iterator_advance,
|
||||
.peel = cache_ref_iterator_peel,
|
||||
.abort = cache_ref_iterator_abort
|
||||
};
|
||||
|
||||
struct ref_iterator *cache_ref_iterator_begin(struct ref_cache *cache,
|
||||
|
Loading…
Reference in New Issue
Block a user