Re: [PATCH v2 2/4] config: report config parse errors using cb
Josh Steadmon <steadmon@google.com> writes:
Show 7 quoted lines
> As Jonathan Tan mentioned in [1], on calling do_event() we set the start
> offset of the new event, and execute the callback for the previous event
> whose end offset we now know.
>
> I refactored this into "start_event()" and "flush_event()" functions as
> suggested, and added a new "do_event_and_flush()" function for the case
> where we want to immediately execute a callback for an event.
Very nicely done. Thanks, both.