]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Pull advance_pc() in file scope
authorTimm Bäder <tbaeder@redhat.com>
Thu, 18 Mar 2021 09:25:24 +0000 (10:25 +0100)
committerMark Wielaard <mark@klomp.org>
Thu, 15 Jul 2021 12:06:52 +0000 (14:06 +0200)
commit779c57ea864d104bad88455535df9b26336349fd
treec27088383960ccdb5176abe96d96e168706ffeb2
parentfddaa57358c53ab86856d9ed0089d1b4ec1b7a1e
readelf: Pull advance_pc() in file scope

Make advance_pc() a static function so we can get rid of another nested
function. Rename it to run_advance_pc() and use a local advance_pc()
macro to pass all the local variables. This is similar to what the
equivalent code in libdw/dwarf_getsrclines.c is doing.

Signed-off-by: Timm Bäder <tbaeder@redhat.com>
src/ChangeLog
src/readelf.c