OSDN Git Service

Prevent certain symbols that are used for both typedefs and variable
authorBruce Momjian <bruce@momjian.us>
Tue, 15 Nov 2005 14:45:10 +0000 (14:45 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 15 Nov 2005 14:45:10 +0000 (14:45 +0000)
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.

src/tools/find_typedef
src/tools/pgindent/pgindent

index 22239c6..ff575fe 100755 (executable)
@@ -28,4 +28,7 @@ do
 done |
 sort |
 uniq |
+# these are used both for typedefs and variable names
+# so do not include them
+egrep -v '^(date|interval|timestamp|ANY)$' |
 sed 's/\(.*\)/-T\1 \\/'
index c9e02c3..887189e 100755 (executable)
@@ -109,7 +109,6 @@ do
 -TAES_KEY \
 -TAMT \
 -TAMTS \
--TANY \
 -TASN1_BIT_STRING \
 -TASN1_BMPSTRING \
 -TASN1_BOOLEAN \
@@ -1548,7 +1547,6 @@ do
 -Tcontain_var_reference_context \
 -Tcv_flags_t \
 -Tdaddr_t \
--Tdate \
 -Tdatetkn \
 -Tdecimal \
 -Tdeparse_context \
@@ -1620,7 +1618,6 @@ do
 -Tint8 \
 -Tint8_t \
 -Tint8m_t \
--Tinterval \
 -Tintf \
 -TitemIdSort \
 -TitemIdSortData \
@@ -1737,7 +1734,6 @@ do
 -TteReqs \
 -Ttext \
 -Ttime_t \
--Ttimestamp \
 -Ttlist_vinfo \
 -Tts_db_fctx \
 -TuInt \