On 3/26/23 7:50 PM, Paul Eggert wrote:
Use the generic function type void (*) (void *) for all unwind cleanups. When an existing cleanup doesn't already have that type, change the type if the function is used only as a cleanup, and add a shim function otherwise. If the shim is used in more than one compilation unit, put the shim function next to the cleanup as an extern function; otherwise, put the shim in the compilation unit as a static function.
Thanks, this looks great. I hadn't started on the unwind-protect code. It's one of the oldest parts of the code base. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://tiswww.cwru.edu/~chet/