Skip to content

Commit 62fb1d6

Browse files
committed
Prevent certain symbols that are used for both typedefs and variable
names from being added to pgindent's typedef list. The existance of them caused weird formatting in the date/type files, and in keywords.c. Backpatch to 8.1.X.
1 parent 02c43ff commit 62fb1d6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/tools/find_typedef

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,7 @@ do
2828
done |
2929
sort |
3030
uniq |
31+
# these are used both for typedefs and variable names
32+
# so do not include them
33+
egrep -v '^(date|interval|timestamp|ANY)$' |
3134
sed 's/\(.*\)/-T\1 \\/'

src/tools/pgindent/pgindent

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ do
109109
-TAES_KEY \
110110
-TAMT \
111111
-TAMTS \
112-
-TANY \
113112
-TASN1_BIT_STRING \
114113
-TASN1_BMPSTRING \
115114
-TASN1_BOOLEAN \
@@ -1548,7 +1547,6 @@ do
15481547
-Tcontain_var_reference_context \
15491548
-Tcv_flags_t \
15501549
-Tdaddr_t \
1551-
-Tdate \
15521550
-Tdatetkn \
15531551
-Tdecimal \
15541552
-Tdeparse_context \
@@ -1620,7 +1618,6 @@ do
16201618
-Tint8 \
16211619
-Tint8_t \
16221620
-Tint8m_t \
1623-
-Tinterval \
16241621
-Tintf \
16251622
-TitemIdSort \
16261623
-TitemIdSortData \
@@ -1737,7 +1734,6 @@ do
17371734
-TteReqs \
17381735
-Ttext \
17391736
-Ttime_t \
1740-
-Ttimestamp \
17411737
-Ttlist_vinfo \
17421738
-Tts_db_fctx \
17431739
-TuInt \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy