]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
windres_get_* functions
authorAlan Modra <amodra@gmail.com>
Fri, 2 May 2025 03:12:32 +0000 (12:42 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 6 May 2025 07:35:40 +0000 (17:05 +0930)
commita7cae7faf146227fdbffde6d5fed68417fc4120f
tree8ef3ee570b73a9aa02b293abb5056cee32ee010b
parentc9524271db0fca0a6f156e7e996584dd4e185b26
windres_get_* functions

windres_get_32 and similar have a length parameter that in most cases
is just the required length, so it is redundant.  The few cases where
a variable length is passed are all in resrc.c.  So, get rid of the
length parameter and introduce wrappers in resrc.c to check the
length.
binutils/resbin.c
binutils/rescoff.c
binutils/resrc.c
binutils/resres.c
binutils/windint.h
binutils/windres.c