1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-26 01:22:12 +03:00

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.
This commit is contained in:
Bruce Momjian
2005-11-15 14:45:14 +00:00
parent b2625c13e0
commit b064cf0b7c
2 changed files with 16 additions and 13 deletions

View File

@ -12,16 +12,23 @@
# Remember, debugging symbols are your friends. # Remember, debugging symbols are your friends.
# #
if [ "$#" -ne 1 -o ! -d "$1" ] if [ "$#" -eq 0 -o ! -d "$1" ]
then echo "Usage: $0 postgres_binary_directory" 1>&2 then echo "Usage: $0 postgres_binary_directory [...]" 1>&2
exit 1 exit 1
fi fi
objdump --stabs "$1"/* | for DIR
grep "LSYM" | do
awk '{print $7}' | objdump --stabs "$DIR"/* |
grep ':t' | grep "LSYM" |
sed 's/^\([^:]*\).*$/\1/' | awk '{print $7}' |
grep -v ' ' | # some typedefs have spaces, remove them grep ':t' |
sed 's/^\([^:]*\).*$/\1/' |
grep -v ' ' # some typedefs have spaces, remove them
done |
sort | sort |
uniq 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 \\/'

View File

@ -109,7 +109,6 @@ do
-TAES_KEY \ -TAES_KEY \
-TAMT \ -TAMT \
-TAMTS \ -TAMTS \
-TANY \
-TASN1_BIT_STRING \ -TASN1_BIT_STRING \
-TASN1_BMPSTRING \ -TASN1_BMPSTRING \
-TASN1_BOOLEAN \ -TASN1_BOOLEAN \
@ -1548,7 +1547,6 @@ do
-Tcontain_var_reference_context \ -Tcontain_var_reference_context \
-Tcv_flags_t \ -Tcv_flags_t \
-Tdaddr_t \ -Tdaddr_t \
-Tdate \
-Tdatetkn \ -Tdatetkn \
-Tdecimal \ -Tdecimal \
-Tdeparse_context \ -Tdeparse_context \
@ -1620,7 +1618,6 @@ do
-Tint8 \ -Tint8 \
-Tint8_t \ -Tint8_t \
-Tint8m_t \ -Tint8m_t \
-Tinterval \
-Tintf \ -Tintf \
-TitemIdSort \ -TitemIdSort \
-TitemIdSortData \ -TitemIdSortData \
@ -1737,7 +1734,6 @@ do
-TteReqs \ -TteReqs \
-Ttext \ -Ttext \
-Ttime_t \ -Ttime_t \
-Ttimestamp \
-Ttlist_vinfo \ -Ttlist_vinfo \
-Tts_db_fctx \ -Tts_db_fctx \
-TuInt \ -TuInt \