diff options
author | Rich Felker <dalias@aerifal.cx> | 2024-08-18 13:53:39 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2024-08-18 13:53:39 -0400 |
commit | ee18e584bfe2c694fdd27bd1251ac5b247f864d5 (patch) | |
tree | a93ac09c36303a30752587a7191b098b34895e7d /src/unistd | |
parent | 06a964709373d4f7a4308453651b4ead66af132d (diff) | |
download | musl-ee18e584bfe2c694fdd27bd1251ac5b247f864d5.tar.gz |
printf core: replace if(0) blocks around switch cases with explicit gotos
this is purely a readability change, not a functional one. all of the
integer format cases use a common tail for handling precision logic
after the string representation of the number has been generated. the
code as I originally wrote it was overly clever in the aim of making a
point that the flow could be done without goto, and jumped over
intervening cases by wrapping them in if (0) { }, with the case labels
for each inside the conditional block scope.
this has been a perpetual source of complaints about the readability
and comprehensibility of the file, so I am now changing it to
explicitly jump to the tail logic with goto statements.
Diffstat (limited to 'src/unistd')
0 files changed, 0 insertions, 0 deletions