forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit03c5a00
committed
Move the extern declaration for ExceptionalCondition into c.h.
This is the logical conclusion of our decision to support Assert()in both frontend and backend code: it should be possible to use thatafter including just c.h. But as things were arranged before, ifyou wanted to use Assert() in code that might be compiled for eitherenvironment, you had to include postgres.h for the backend case.Let's simplify that.Per buildfarm, some of whose members started throwing warnings aftercommit0c62356 added an Assert in src/port/snprintf.c.It's possible that some other src/port files that use the stanza#ifndef FRONTEND#include "postgres.h"#else#include "postgres_fe.h"#endifcould now be simplified to just say '#include "c.h"'. I have nottested for that, though, and it'd be unlikely to apply for morethan a small number of them.1 parentcbadba8 commit03c5a00
2 files changed
+16
-19
lines changedLines changed: 16 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
40 |
| - | |
41 |
| - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
42 | 43 |
| |
43 | 44 |
| |
44 | 45 |
| |
| |||
747 | 748 |
| |
748 | 749 |
| |
749 | 750 |
| |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
| 756 | + | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
750 | 763 |
| |
751 | 764 |
| |
752 | 765 |
| |
|
Lines changed: 0 additions & 16 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
29 | 28 |
| |
30 | 29 |
| |
31 | 30 |
| |
| |||
766 | 765 |
| |
767 | 766 |
| |
768 | 767 |
| |
769 |
| - | |
770 |
| - | |
771 |
| - | |
772 |
| - | |
773 |
| - | |
774 |
| - | |
775 |
| - | |
776 |
| - | |
777 |
| - | |
778 |
| - | |
779 |
| - | |
780 |
| - | |
781 |
| - | |
782 |
| - | |
783 |
| - | |
784 | 768 |
|
0 commit comments
Comments
(0)