]> git.nickg.me.uk Git - nvc.git/commit
vhpi: Support iterators in vhpi_handle_by_index
authorSean Anderson <seanga2@gmail.com>
Mon, 29 May 2023 18:50:52 +0000 (14:50 -0400)
committerNick Gasson <nick@nickg.me.uk>
Sun, 4 Jun 2023 22:00:34 +0000 (22:00 +0000)
commita58cb16c86cf2ca19b219b52dc66a7df53728467
tree71e4dd1ccf592e4d73a405aa47045adbc334c2d4
parent50c7fa4e324440ec921617ee103b3ab5a4353fa9
vhpi: Support iterators in vhpi_handle_by_index

Refactor vhpi_handle_by_index to work with iterators, allowing it to
work with anything that vhpi_iterator does (and vice versa).
src/vhpi/vhpi-model.c
test/vhpi/vhpi1.c
test/vhpi/vhpi3.c