]> diplodocus.org Git - nmh/commitdiff
Detect function-pointer `done' being set twice in a row.
authorRalph Corderoy <ralph@inputplus.co.uk>
Thu, 21 Sep 2017 15:59:15 +0000 (16:59 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Thu, 21 Sep 2017 15:59:15 +0000 (16:59 +0100)
Make `done' a function that uses a file-static function pointer, and add
set_done() to alter it.  That wants either the old or new value to be
exit(3).  If it's not, it still alters the stored pointer, to maintain
the existing behaviour, but emits a warning on stderr.  mhbuild(1)
triggers that warning, making this hunch worthwhile.


No differences found