]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Move iterator initialization to init_iterator
authorSean Anderson <seanga2@gmail.com>
Mon, 29 May 2023 18:36:17 +0000 (14:36 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 4 Jun 2023 22:00:34 +0000 (22:00 +0000)
commit5f92273aa29821040207082b9b7d3ce928d92345
tree80695262f827b5d9414ae7de916ce40a8be9c8d4
parentefe4433a26b5623b5e80a88d547a9d4710843245
vhpi: Move iterator initialization to init_iterator

In preparation for merging the logic in vhpi_iterator with
vhpi_handle_for_index, split off iterator initialization into its own
function. This replaces new_iterator so we can avoid a memory
allocation if possible in vhpi_handle_for_index.
src/vhpi/vhpi-model.c