|
1 | 1 | #!/bin/sh |
2 | 2 |
|
3 | | -# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.10 2008/03/18 23:04:34 momjian Exp $ |
| 3 | +# $PostgreSQL: pgsql/src/tools/find_typedef,v 1.11 2008/03/18 23:23:08 momjian Exp $ |
4 | 4 |
|
5 | 5 | # This script attempts to find all typedef's in the postgres binaries |
6 | 6 | # by using 'nm' to report all typedef debugging symbols. |
@@ -39,7 +39,11 @@ for DIR |
39 | 39 | do# if objdump -W is recognized, only one line of error should appear |
40 | 40 | if [`objdump -W2>&1| wc -l`-eq 1 ] |
41 | 41 | then# Linux |
42 | | -# unfortunately the Linux version doesn't show unreferenced typedefs |
| 42 | +# Unfortunately the Linux version doesn't show unreferenced typedefs. |
| 43 | +# The problem is that they are still in the source code so should be |
| 44 | +# indented properly. However, I think pgindent only cares about |
| 45 | +# the typedef references, not the definitions, so I think it might |
| 46 | +# be fine |
43 | 47 | objdump -W"$DIR"/*| |
44 | 48 | egrep -A3'(DW_TAG_typedef|DW_TAG_structure_type|DW_TAG_union_type)'| |
45 | 49 | awk' $2 == "DW_AT_name" {print $NF}' |
|