That style is similar to what I would use when I need to factor out code in large C functions. It should be general enough to replace all nested functions in elfutils.
A lot of these are longer than I'd like to see for macros. Let's commit
all the ones where it's pretty straightforward to make them static
functions and then see what's left.