diff options
author | Bruce Momjian <bruce@momjian.us> | 2008-03-18 23:23:08 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2008-03-18 23:23:08 +0000 |
commit | af7680f668d582712611ca71756583603089c2a3 (patch) | |
tree | d094b431a2829dc3edbff13162a10c846550a413 /src | |
parent | 0939946a5e595b308fc8db260fb9826945b24c61 (diff) | |
download | postgresql-af7680f668d582712611ca71756583603089c2a3.tar.gz postgresql-af7680f668d582712611ca71756583603089c2a3.zip |
Add find_typedef comments for Linux.
Diffstat (limited to 'src')
-rwxr-xr-x | src/tools/find_typedef | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/tools/find_typedef b/src/tools/find_typedef index ad14aeea488..33e7fc677dc 100755 --- a/src/tools/find_typedef +++ b/src/tools/find_typedef @@ -1,6 +1,6 @@ #!/bin/sh -# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.10 2008/03/18 23:04:34 momjian Exp $ +# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.11 2008/03/18 23:23:08 momjian Exp $ # This script attempts to find all typedef's in the postgres binaries # by using 'nm' to report all typedef debugging symbols. @@ -39,7 +39,11 @@ for DIR do # if objdump -W is recognized, only one line of error should appear if [ `objdump -W 2>&1 | wc -l` -eq 1 ] then # Linux - # unfortunately the Linux version doesn't show unreferenced typedefs + # Unfortunately the Linux version doesn't show unreferenced typedefs. + # The problem is that they are still in the source code so should be + # indented properly. However, I think pgindent only cares about + # the typedef references, not the definitions, so I think it might + # be fine objdump -W "$DIR"/* | egrep -A3 '(DW_TAG_typedef|DW_TAG_structure_type|DW_TAG_union_type)' | awk ' $2 == "DW_AT_name" {print $NF}' |