Commit cc8e8ae
committed
Make identifier_alpha_transfor.c frontend-safe
identifier_alpha_transfor.c is compiled as part of frontend libpgport,
but it previously hardwired backend-only header/allocation choices.
Build error excerpt:
```
../src/include/utils/elog.h:79:10: fatal error:
'utils/errcodes.h' file not found
```
Unify the FRONTEND split at the top of the file: choose postgres.h vs
postgres_fe.h once, define ALLOC() once, and reuse ALLOC() in both
conversion helpers. This keeps frontend/backend allocation behavior
consistent and removes scattered per-callsite #ifdef blocks.1 parent 0da228b commit cc8e8ae
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
41 | 44 | | |
42 | 45 | | |
43 | 46 | | |
| |||
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
54 | | - | |
| 57 | + | |
55 | 58 | | |
56 | 59 | | |
57 | 60 | | |
| |||
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
80 | | - | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
0 commit comments