Simplify insertion of items in tailq
commit2d1c9251b967f13ecaf1d626a9606ff574572d3b
authorStathis Kamperis <ekamperi@auth.gr>
Fri, 24 Aug 2007 07:27:51 +0000 (24 10:27 +0300)
committerStathis Kamperis <ekamperi@auth.gr>
Fri, 24 Aug 2007 07:27:51 +0000 (24 10:27 +0300)
treeabf417925cfcadcc969285be9341b0ff424701c9
parent7246b2f8760b47a73d3ed43f8973f15c32a8c685
Simplify insertion of items in tailq
Since tail queue contains a pointer to the last element,
we can use the TAILQ_INSERT_TAIL to poppulate our list
with items, instead of the combination of TAILQ_INSERT_HEAD
and TAILQ_INSERT__AFTER.
This simplifys the code significantly.
genstructs/tailq.c