Skip to content

Commit

Permalink
locale.c: Rework locale initialization loop
Browse files Browse the repository at this point in the history
The previous code was always hard to understand, with a self-modifying
loop.  I finally figured out a clearer way to do it, by using an enum
with all the possibilities, and a switch statement that sets up the loop
for each, or decides this possibility isn't valid on this platform.  The
first possibility that works exits the loop.
  • Loading branch information
khwilliamson committed May 6, 2023
1 parent 49d4913 commit e3b4948
Showing 1 changed file with 308 additions and 284 deletions.

0 comments on commit e3b4948

Please sign in to comment.