Migrate all enumerators to venumerate() interface change

This commit is contained in:
Tobias Brunner
2017-05-26 13:56:44 +02:00
parent 16bffa8b55
commit 95a63bf281
68 changed files with 851 additions and 560 deletions
+7 -2
View File
@@ -668,8 +668,12 @@ typedef struct {
} frame_enumerator_t;
METHOD(enumerator_t, frame_enumerate, bool,
frame_enumerator_t *this, void **addr)
frame_enumerator_t *this, va_list args)
{
void **addr;
VA_ARGS_VGET(args, addr);
if (this->i < this->bt->frame_count)
{
*addr = this->bt->frames[this->i++];
@@ -685,7 +689,8 @@ METHOD(backtrace_t, create_frame_enumerator, enumerator_t*,
INIT(enumerator,
.public = {
.enumerate = (void*)_frame_enumerate,
.enumerate = enumerator_enumerate_default,
.venumerate = _frame_enumerate,
.destroy = (void*)free,
},
.bt = this,