diff options
author | Pedro Alves <pedro@palves.net> | 2024-03-22 19:46:59 +0000 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2024-03-22 19:46:59 +0000 |
commit | 092ff48583a1bbc1c4c5ca4edbf23c2d8c4a356b (patch) | |
tree | 0a93e8947cae7f12397a1f7e47c8a877aff75d96 /gdb/nat/linux-waitpid.h | |
parent | 9f88262921a7e659852cd127f2ee0976eae7518e (diff) | |
download | binutils-092ff48583a1bbc1c4c5ca4edbf23c2d8c4a356b.zip binutils-092ff48583a1bbc1c4c5ca4edbf23c2d8c4a356b.tar.gz binutils-092ff48583a1bbc1c4c5ca4edbf23c2d8c4a356b.tar.bz2 |
Simplify windows-nat.c:windows_make_so #ifdefery
There are two separate #ifndef __CYGWIN__/#else/#endif sections in the
windows_make_so function with 3 lines of shared code separating them.
I find this makes the code harder to understand than necessary.
AFAICS, there is no reason those three shared lines need to be after
the first #ifdef block. There is no early return, nor are 'load_addr'
nor 'name' modified.
This commit moves that shared code to the top of the function, and
then combines the two #ifndef sections.
Approved-By: John Baldwin <jhb@FreeBSD.org>
Change-Id: If2678b52836b1c3134a5e9f9fdaee74448d8b7bc
Diffstat (limited to 'gdb/nat/linux-waitpid.h')
0 files changed, 0 insertions, 0 deletions