forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitaa9eac4
committed
Fix portability issue in isolationtester grammar.
specparse.y and specscanner.l used "string" as a token name. Now, bisonlikes to define each token name as a macro for the token code it assigns,which means those names are basically off-limits for any other use withinthe grammar file or included headers. So names as generic as "string" aredangerous. This is what was causing the recent failures on protosciurus:some versions of Solaris' sys/kstat.h use "string" as a field name.With late-model bison we don't see this problem because the token macrosaren't defined till later (that is why castoroides didn't show the problemeven though it's on the same machine). But protosciurus uses bison 1.875which defines the token macros up front.This land mine has been there from day one; we'd have found it soonerexcept that protosciurus wasn't trying to run the isolation tests tillrecently.To fix, rename the token to "string_literal" which is hopefully lesslikely to collide with names used by system headers. Back-patch toall branches containing the isolation tests.1 parentf41042c commitaa9eac4
2 files changed
+9
-9
lines changedLines changed: 8 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
39 | 39 |
| |
40 | 40 |
| |
41 | 41 |
| |
42 |
| - | |
| 42 | + | |
43 | 43 |
| |
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
| 47 | + | |
48 | 48 |
| |
49 | 49 |
| |
50 | 50 |
| |
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
114 |
| - | |
| 114 | + | |
115 | 115 |
| |
116 | 116 |
| |
117 | 117 |
| |
| |||
140 | 140 |
| |
141 | 141 |
| |
142 | 142 |
| |
143 |
| - | |
| 143 | + | |
144 | 144 |
| |
145 | 145 |
| |
146 | 146 |
| |
| |||
179 | 179 |
| |
180 | 180 |
| |
181 | 181 |
| |
182 |
| - | |
| 182 | + | |
183 | 183 |
| |
184 | 184 |
| |
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 | 188 |
| |
189 | 189 |
| |
190 |
| - | |
191 |
| - | |
| 190 | + | |
| 191 | + | |
192 | 192 |
| |
193 | 193 |
| |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 |
| - | |
| 198 | + | |
199 | 199 |
| |
200 | 200 |
| |
201 | 201 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
58 | 58 |
| |
59 | 59 |
| |
60 | 60 |
| |
61 |
| - | |
| 61 | + | |
62 | 62 |
| |
63 | 63 |
| |
64 | 64 |
| |
|
0 commit comments
Comments
(0)