Wrap MPV puffettes in a struct

This commit is contained in:
Justin Viiret
2016-04-15 15:28:23 +10:00
committed by Matthew Barr
parent ac31841214
commit fa27025bcb
4 changed files with 26 additions and 17 deletions

View File

@@ -1780,7 +1780,7 @@ bool RoseBuildImpl::addOutfix(const raw_puff &rp) {
mpv_outfix->chained = true;
}
mpv_outfix->puffettes.push_back(rp);
mpv_outfix->mpv.puffettes.push_back(rp);
mpv_outfix->maxBAWidth = ROSE_BOUND_INF; /* not ba */
mpv_outfix->minWidth = min(mpv_outfix->minWidth, depth(rp.repeats));
@@ -1804,7 +1804,7 @@ bool RoseBuildImpl::addChainTail(const raw_puff &rp, u32 *queue_out,
mpv_outfix->chained = true;
}
mpv_outfix->triggered_puffettes.push_back(rp);
mpv_outfix->mpv.triggered_puffettes.push_back(rp);
mpv_outfix->maxBAWidth = ROSE_BOUND_INF; /* not ba */
mpv_outfix->minWidth = min(mpv_outfix->minWidth, depth(rp.repeats));
@@ -1816,7 +1816,7 @@ bool RoseBuildImpl::addChainTail(const raw_puff &rp, u32 *queue_out,
* the caller */
*queue_out = mpv_outfix->get_queue(qif);
*event_out = MQE_TOP_FIRST + mpv_outfix->triggered_puffettes.size() - 1;
*event_out = MQE_TOP_FIRST + mpv_outfix->mpv.triggered_puffettes.size() - 1;
return true; /* failure is not yet an option */
}