- Notifications
You must be signed in to change notification settings - Fork5
Commitdcc55dd
committed
Rename ResolveNew() to ReplaceVarsFromTargetList(), and tweak its API.
This function currently lacks the option to throw error if the providedtargetlist doesn't have any matching entry for a Var to be replaced.Two of the four existing call sites would be better off with an error,as would the usage in the pending auto-updatable-views patch, so it seemspast time to extend the API to support that. To do so, replace the "event"parameter (historically of type CmdType, though it was declared plain int)with a special-purpose enum type.It's unclear whether this function might be called by third-party code.Since many C compilers wouldn't warn about a call site continuing to usethe old calling convention, rename the function to forcibly break anysuch code that hasn't been updated. The old name was none too well chosenanyhow.1 parent75af5ae commitdcc55dd
File tree
4 files changed
+106
-76
lines changed- src
- backend
- optimizer/path
- rewrite
- include/rewrite
4 files changed
+106
-76
lines changedLines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1835 | 1835 |
| |
1836 | 1836 |
| |
1837 | 1837 |
| |
1838 |
| - | |
1839 |
| - | |
1840 |
| - | |
1841 |
| - | |
| 1838 | + | |
| 1839 | + | |
| 1840 | + | |
| 1841 | + | |
1842 | 1842 |
| |
1843 | 1843 |
| |
1844 | 1844 |
| |
|
Lines changed: 35 additions & 30 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
502 | 502 |
| |
503 | 503 |
| |
504 | 504 |
| |
505 |
| - | |
| 505 | + | |
506 | 506 |
| |
507 | 507 |
| |
508 |
| - | |
509 |
| - | |
510 |
| - | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
511 | 511 |
| |
512 | 512 |
| |
513 | 513 |
| |
514 | 514 |
| |
515 |
| - | |
516 |
| - | |
517 |
| - | |
518 |
| - | |
519 |
| - | |
520 |
| - | |
521 |
| - | |
522 |
| - | |
523 |
| - | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
| 522 | + | |
| 523 | + | |
| 524 | + | |
| 525 | + | |
524 | 526 |
| |
525 | 527 |
| |
526 | 528 |
| |
| |||
543 | 545 |
| |
544 | 546 |
| |
545 | 547 |
| |
546 |
| - | |
547 |
| - | |
548 |
| - | |
549 |
| - | |
550 |
| - | |
551 |
| - | |
552 |
| - | |
553 |
| - | |
554 |
| - | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
| 551 | + | |
| 552 | + | |
| 553 | + | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
555 | 557 |
| |
556 | 558 |
| |
557 | 559 |
| |
| |||
1703 | 1705 |
| |
1704 | 1706 |
| |
1705 | 1707 |
| |
1706 |
| - | |
1707 |
| - | |
1708 |
| - | |
1709 |
| - | |
1710 |
| - | |
1711 |
| - | |
1712 |
| - | |
1713 |
| - | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
| 1714 | + | |
| 1715 | + | |
| 1716 | + | |
| 1717 | + | |
| 1718 | + | |
1714 | 1719 |
| |
1715 | 1720 |
| |
1716 | 1721 |
| |
|
Lines changed: 53 additions & 38 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1323 | 1323 |
| |
1324 | 1324 |
| |
1325 | 1325 |
| |
1326 |
| - | |
| 1326 | + | |
1327 | 1327 |
| |
1328 | 1328 |
| |
1329 | 1329 |
| |
1330 |
| - | |
1331 |
| - | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
1332 | 1336 |
| |
1333 | 1337 |
| |
1334 | 1338 |
| |
| |||
1341 | 1345 |
| |
1342 | 1346 |
| |
1343 | 1347 |
| |
1344 |
| - | |
1345 |
| - | |
1346 |
| - | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
1347 | 1351 |
| |
1348 | 1352 |
| |
1349 |
| - | |
1350 |
| - | |
| 1353 | + | |
| 1354 | + | |
1351 | 1355 |
| |
1352 |
| - | |
| 1356 | + | |
1353 | 1357 |
| |
1354 | 1358 |
| |
1355 | 1359 |
| |
| |||
1388 | 1392 |
| |
1389 | 1393 |
| |
1390 | 1394 |
| |
1391 |
| - | |
1392 |
| - | |
1393 |
| - | |
1394 |
| - | |
1395 |
| - | |
1396 |
| - | |
1397 |
| - | |
1398 |
| - | |
1399 |
| - | |
1400 |
| - | |
| 1395 | + | |
| 1396 | + | |
1401 | 1397 |
| |
1402 |
| - | |
1403 |
| - | |
1404 |
| - | |
1405 |
| - | |
1406 |
| - | |
1407 |
| - | |
1408 |
| - | |
1409 |
| - | |
1410 |
| - | |
1411 |
| - | |
1412 |
| - | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
| 1419 | + | |
| 1420 | + | |
| 1421 | + | |
1413 | 1422 |
| |
| 1423 | + | |
| 1424 | + | |
| 1425 | + | |
1414 | 1426 |
| |
1415 | 1427 |
| |
1416 | 1428 |
| |
| |||
1426 | 1438 |
| |
1427 | 1439 |
| |
1428 | 1440 |
| |
1429 |
| - | |
1430 |
| - | |
1431 |
| - | |
1432 |
| - | |
| 1441 | + | |
| 1442 | + | |
| 1443 | + | |
| 1444 | + | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
1433 | 1448 |
| |
1434 |
| - | |
| 1449 | + | |
1435 | 1450 |
| |
1436 | 1451 |
| |
1437 | 1452 |
| |
1438 |
| - | |
1439 |
| - | |
| 1453 | + | |
| 1454 | + | |
1440 | 1455 |
| |
1441 | 1456 |
| |
1442 |
| - | |
| 1457 | + | |
1443 | 1458 |
| |
1444 | 1459 |
| |
1445 | 1460 |
|
Lines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 |
| |
35 | 42 |
| |
36 | 43 |
| |
| |||
69 | 76 |
| |
70 | 77 |
| |
71 | 78 |
| |
72 |
| - | |
73 |
| - | |
74 |
| - | |
75 |
| - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
76 | 86 |
| |
77 | 87 |
|
0 commit comments
Comments
(0)