forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit2dd6733
committed
Minor fixes to improve regex debugging code.
When REG_DEBUG is defined, ensure that an un-filled "struct cnfa"is all-zeroes, not just that it has nstates == 0. This is mainlyso that looking at "struct subre" structs in gdb doesn't distractone with a lot of garbage fields during regex compilation.Adjust some places that print debug output to have suitable fflushcalls afterwards.In passing, correct an erroneous ancient comment: the concatenationsubre-s created by parsebranch() have op == '.' not ','.Noted while fooling around with some regex performance improvements.1 parentc7ecd6a commit2dd6733
3 files changed
+15
-4
lines changedLines changed: 3 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2951 | 2951 |
| |
2952 | 2952 |
| |
2953 | 2953 |
| |
2954 |
| - | |
2955 |
| - | |
| 2954 | + | |
2956 | 2955 |
| |
2957 | 2956 |
| |
2958 | 2957 |
| |
| 2958 | + | |
2959 | 2959 |
| |
2960 | 2960 |
| |
2961 | 2961 |
| |
| |||
3012 | 3012 |
| |
3013 | 3013 |
| |
3014 | 3014 |
| |
3015 |
| - | |
3016 | 3015 |
| |
3017 | 3016 |
| |
3018 | 3017 |
| |
3019 | 3018 |
| |
3020 | 3019 |
| |
3021 | 3020 |
| |
| 3021 | + | |
3022 | 3022 |
| |
3023 | 3023 |
| |
3024 | 3024 |
| |
|
Lines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
479 | 479 |
| |
480 | 480 |
| |
481 | 481 |
| |
| 482 | + | |
482 | 483 |
| |
| 484 | + | |
| 485 | + | |
483 | 486 |
| |
484 | 487 |
| |
485 | 488 |
| |
| |||
721 | 724 |
| |
722 | 725 |
| |
723 | 726 |
| |
724 |
| - | |
| 727 | + | |
725 | 728 |
| |
726 | 729 |
| |
727 | 730 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
368 | 368 |
| |
369 | 369 |
| |
370 | 370 |
| |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
371 | 378 |
| |
| 379 | + | |
372 | 380 |
| |
373 | 381 |
| |
374 | 382 |
| |
|
0 commit comments
Comments
(0)