forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd7694fc
committed
Consolidate the function pointer types used by dshash.c.
Commit8c0d7ba introduced dshash with hashand compare functions like DynaHash's, and also variants that take a userdata pointer instead of size. Simplify the interface by merging them intoa single pair of function pointer types that take both size and a user datapointer.Since it is anticipated that memcmp and tag_hash behavior will be a commonrequirement, provide wrapper functions dshash_memcmp and dshash_memhash thatconform to the new function types.Author: Thomas MunroReviewed-By: Andres FreundDiscussion:https://postgr.es/m/20170823054644.efuzftxjpfi6wwqs%40alap3.anarazel.de1 parent4569715 commitd7694fc
2 files changed
+39
-63
lines changedLines changed: 29 additions & 36 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
35 | 35 |
| |
36 | 36 |
| |
37 | 37 |
| |
| 38 | + | |
38 | 39 |
| |
39 | 40 |
| |
40 | 41 |
| |
| |||
188 | 189 |
| |
189 | 190 |
| |
190 | 191 |
| |
191 |
| - | |
192 |
| - | |
193 |
| - | |
| 192 | + | |
| 193 | + | |
194 | 194 |
| |
195 | 195 |
| |
196 | 196 |
| |
197 | 197 |
| |
198 | 198 |
| |
199 | 199 |
| |
200 | 200 |
| |
201 |
| - | |
202 |
| - | |
203 |
| - | |
204 |
| - | |
205 |
| - | |
206 |
| - | |
207 |
| - | |
208 |
| - | |
209 | 201 |
| |
210 | 202 |
| |
211 | 203 |
| |
| |||
263 | 255 |
| |
264 | 256 |
| |
265 | 257 |
| |
266 |
| - | |
267 |
| - | |
268 |
| - | |
| 258 | + | |
| 259 | + | |
269 | 260 |
| |
270 | 261 |
| |
271 | 262 |
| |
| |||
274 | 265 |
| |
275 | 266 |
| |
276 | 267 |
| |
277 |
| - | |
278 |
| - | |
279 |
| - | |
280 |
| - | |
281 |
| - | |
282 |
| - | |
283 |
| - | |
284 |
| - | |
285 | 268 |
| |
286 | 269 |
| |
287 | 270 |
| |
| |||
582 | 565 |
| |
583 | 566 |
| |
584 | 567 |
| |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
585 | 586 |
| |
586 | 587 |
| |
587 | 588 |
| |
| |||
874 | 875 |
| |
875 | 876 |
| |
876 | 877 |
| |
877 |
| - | |
878 |
| - | |
879 |
| - | |
880 |
| - | |
881 |
| - | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
882 | 881 |
| |
883 | 882 |
| |
884 | 883 |
| |
| |||
887 | 886 |
| |
888 | 887 |
| |
889 | 888 |
| |
890 |
| - | |
891 |
| - | |
892 |
| - | |
893 |
| - | |
894 |
| - | |
895 |
| - | |
896 |
| - | |
897 |
| - | |
898 |
| - | |
| 889 | + | |
| 890 | + | |
| 891 | + | |
899 | 892 |
|
Lines changed: 10 additions & 27 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
30 |
| - | |
31 |
| - | |
32 |
| - | |
33 |
| - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
34 | 32 |
| |
35 |
| - | |
36 |
| - | |
37 |
| - | |
38 |
| - | |
39 |
| - | |
40 |
| - | |
41 |
| - | |
42 |
| - | |
43 |
| - | |
44 |
| - | |
45 |
| - | |
46 |
| - | |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 |
| - | |
51 |
| - | |
52 |
| - | |
53 |
| - | |
54 |
| - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
55 | 36 |
| |
56 | 37 |
| |
57 | 38 |
| |
| |||
70 | 51 |
| |
71 | 52 |
| |
72 | 53 |
| |
73 |
| - | |
74 | 54 |
| |
75 |
| - | |
76 | 55 |
| |
77 | 56 |
| |
78 | 57 |
| |
| |||
101 | 80 |
| |
102 | 81 |
| |
103 | 82 |
| |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
104 | 87 |
| |
105 | 88 |
| |
106 | 89 |
| |
|
0 commit comments
Comments
(0)