Skip to contentSkip to conversation

Makefile: remove forward declaration using etags

PATCH New Yang Bai 1 participant 1 message Mar 12, 2012

lore
Share & tools
lore

Yang Bai

author
#0 lore raw

PATCH 1/1 Makefile: remove forward declaration using etags

When using exuberant, we will remove all forward declaration of struct at the end, add this function to etags.

---
 scripts/tags.sh |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
scripts/tags.sh +3 -0
index 833813a..261dfd2 100755
@@ -208,6 +208,9 @@ emacs()
 
 	all_defconfigs | xargs -r $1 -a                         \
 	--regex='/^#?[ \t]?\(CONFIG_[a-zA-Z0-9_]+\)/\1/'
+
+	# Remove structure forward declarations.
+	LANG=C sed -i -e '/^\([a-zA-Z_][a-zA-Z0-9_]*\)\t.*\t\/\^struct \1;.*\$\/;"\tx$/d' TAGS
 }
 
 xtags()
Signature · 1 line
1.7.9.1