Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitaf7680f

Browse files
committed
Add find_typedef comments for Linux.
1 parent0939946 commitaf7680f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

‎src/tools/find_typedef

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

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 $
44

55
# This script attempts to find all typedef's in the postgres binaries
66
# by using 'nm' to report all typedef debugging symbols.
@@ -39,7 +39,11 @@ for DIR
3939
do# if objdump -W is recognized, only one line of error should appear
4040
if [`objdump -W2>&1| wc -l`-eq 1 ]
4141
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
4347
objdump -W"$DIR"/*|
4448
egrep -A3'(DW_TAG_typedef|DW_TAG_structure_type|DW_TAG_union_type)'|
4549
awk' $2 == "DW_AT_name" {print $NF}'

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp