regcomp.c: Don't iterate while changing an inversion list
authorKarl Williamson <public@khwilliamson.com>
Thu, 27 Dec 2012 17:25:48 +0000 (10:25 -0700)
committerKarl Williamson <public@khwilliamson.com>
Fri, 28 Dec 2012 17:38:53 +0000 (10:38 -0700)
commitf799ce5b1c4ca739689451f7214896b548302a75
tree26c583be03c1270c9951bab54b4cc7405b1fd026
parent9f68b0f7acd1bcb04e7baa4bdb7cfec8e5d985c8
regcomp.c: Don't iterate while changing an inversion list

This adds functions to prevent accidental (or deliberate) iteration over
an inversion list while it is being modified.  This is to catch
development errors, and in production builds, the asserts() are likely
no-ops
embed.fnc
embed.h
proto.h
regcomp.c
regen/mk_invlists.pl