Commit 8eb13be
committed
pp_chdir: simplify control flow in fchdir case
The result is (in my opinion) easier to read. It also lets us get rid
of:
- two levels of indentation
- three `goto`s and a label
- one duplicate instance of `PUSHs(boolSV(fchdir(...) >= 0))`
- one `#ifdef ... #endif` section1 parent a518f71 commit 8eb13be
1 file changed
+10
-23
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3950 | 3950 | | |
3951 | 3951 | | |
3952 | 3952 | | |
3953 | | - | |
3954 | | - | |
3955 | | - | |
3956 | | - | |
3957 | | - | |
3958 | | - | |
3959 | | - | |
3960 | | - | |
3961 | | - | |
3962 | | - | |
3963 | | - | |
3964 | | - | |
3965 | | - | |
3966 | | - | |
3967 | | - | |
| 3953 | + | |
| 3954 | + | |
| 3955 | + | |
| 3956 | + | |
| 3957 | + | |
| 3958 | + | |
| 3959 | + | |
| 3960 | + | |
| 3961 | + | |
3968 | 3962 | | |
3969 | | - | |
| 3963 | + | |
3970 | 3964 | | |
3971 | 3965 | | |
3972 | 3966 | | |
| |||
3979 | 3973 | | |
3980 | 3974 | | |
3981 | 3975 | | |
3982 | | - | |
3983 | | - | |
3984 | | - | |
3985 | | - | |
3986 | | - | |
3987 | | - | |
3988 | | - | |
3989 | 3976 | | |
3990 | 3977 | | |
3991 | 3978 | | |
| |||
0 commit comments