forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit72b1e3a
committed
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.
Now that we know about the %top{} trick, we can revert to building flexlexers as separate .o files. This is worth doing for a couple of reasonsbesides sheer cleanliness. We can narrow the scope of the -Wno-error flagthat's forced on scan.c. Also, since these grammar and lexer files areso large, splitting them into separate build targets should have someadvantages in build speed, particularly in parallel or ccache'd builds.We have quite a few other .l files that could be changed likewise, but theabove arguments don't apply to them, so the benefit of fixing them seemspretty minimal. Leave the rest for some other day.1 parent7bafffe commit72b1e3a
6 files changed
+23
-34
lines changedLines changed: 3 additions & 6 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 |
| - | |
| 15 | + | |
16 | 16 |
| |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 |
| - | |
25 |
| - | |
26 | 23 |
| |
27 | 24 |
| |
28 |
| - | |
| 25 | + | |
29 | 26 |
| |
30 | 27 |
| |
31 | 28 |
| |
| |||
47 | 44 |
| |
48 | 45 |
| |
49 | 46 |
| |
50 |
| - | |
| 47 | + | |
51 | 48 |
| |
52 | 49 |
| |
53 | 50 |
| |
|
Lines changed: 0 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
14908 | 14908 |
| |
14909 | 14909 |
| |
14910 | 14910 |
| |
14911 |
| - | |
14912 |
| - | |
14913 |
| - | |
14914 |
| - | |
14915 |
| - | |
14916 |
| - | |
14917 |
| - | |
14918 |
| - | |
14919 |
| - | |
14920 |
| - |
Lines changed: 5 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
9 |
| - | |
| 9 | + | |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
| |||
34 | 34 |
| |
35 | 35 |
| |
36 | 36 |
| |
| 37 | + | |
37 | 38 |
| |
38 |
| - | |
39 | 39 |
| |
40 | 40 |
| |
| 41 | + | |
41 | 42 |
| |
42 |
| - | |
| 43 | + | |
43 | 44 |
| |
44 | 45 |
| |
45 | 46 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
29 |
| - | |
| 29 | + | |
30 | 30 |
| |
31 | 31 |
| |
32 | 32 |
| |
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
47 |
| - | |
48 |
| - | |
49 |
| - | |
50 | 47 |
| |
51 | 48 |
| |
52 | 49 |
| |
53 | 50 |
| |
54 | 51 |
| |
55 | 52 |
| |
56 | 53 |
| |
57 |
| - | |
| 54 | + | |
58 | 55 |
| |
59 | 56 |
| |
60 | 57 |
| |
|
Lines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1916 | 1916 |
| |
1917 | 1917 |
| |
1918 | 1918 |
| |
1919 |
| - | |
1920 |
| - | |
1921 |
| - | |
1922 |
| - | |
1923 |
| - | |
1924 |
| - | |
1925 |
| - | |
1926 |
| - |
Lines changed: 13 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
26 | 37 |
| |
| 38 | + | |
27 | 39 |
| |
28 | 40 |
| |
29 | 41 |
| |
|
0 commit comments
Comments
(0)