Commit 4b74c6a
committed
Make init_spin_delay() C89 compliant #2.
My previous attempt at doing so, in 80abbeb, was not sufficient. While that
fixed the problem for bufmgr.c and lwlock.c , s_lock.c still has non-constant
expressions in the struct initializer, because the file/line/function
information comes from the caller of s_lock().
Give up on using a macro, and use a static inline instead.
Discussion: 4369.1460435533@sss.pgh.pa.us1 parent 533cd23 commit 4b74c6a
4 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4029 | 4029 | | |
4030 | 4030 | | |
4031 | 4031 | | |
4032 | | - | |
| 4032 | + | |
4033 | 4033 | | |
4034 | 4034 | | |
| 4035 | + | |
| 4036 | + | |
4035 | 4037 | | |
4036 | 4038 | | |
4037 | 4039 | | |
| |||
4055 | 4057 | | |
4056 | 4058 | | |
4057 | 4059 | | |
4058 | | - | |
| 4060 | + | |
4059 | 4061 | | |
4060 | 4062 | | |
| 4063 | + | |
| 4064 | + | |
4061 | 4065 | | |
4062 | 4066 | | |
4063 | 4067 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
870 | 870 | | |
871 | 871 | | |
872 | 872 | | |
873 | | - | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
874 | 876 | | |
875 | 877 | | |
876 | 878 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1005 | 1005 | | |
1006 | 1006 | | |
1007 | 1007 | | |
1008 | | - | |
1009 | | - | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + | |
| 1011 | + | |
| 1012 | + | |
| 1013 | + | |
| 1014 | + | |
| 1015 | + | |
| 1016 | + | |
| 1017 | + | |
| 1018 | + | |
| 1019 | + | |
| 1020 | + | |
1010 | 1021 | | |
1011 | 1022 | | |
1012 | 1023 | | |
| |||
0 commit comments