History

scripts/tags.sh: Teach [ce]tags about libtraceeevent error codes

As we use a macro trick to sync each error codes with its description string, teach [ce]tags to process them properly.

Namhyung Kim committed 14 years ago

Commit 1fa85051 parent 6fcd5f21 file · +4 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/tags.sh+4−2
@@ -153,7 +153,8 @@ exuberant() · 152 unmodified lines
153153 --regex-c++='/CLEARPAGEFLAG_NOOP\(([^,)]*).*/ClearPage\1/' \
154154 --regex-c++='/__CLEARPAGEFLAG_NOOP\(([^,)]*).*/__ClearPage\1/' \
155155 --regex-c++='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \
156− --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/'
156+ --regex-c++='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \
157+ --regex-c++='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/'
157158
158159 all_kconfigs | xargs $1 -a \
159160 --langdef=kconfig --language-force=kconfig \
@@ -195,7 +196,8 @@ emacs() · 35 unmodified lines
195196 --regex='/CLEARPAGEFLAG_NOOP\(([^,)]*).*/ClearPage\1/' \
196197 --regex='/__CLEARPAGEFLAG_NOOP\(([^,)]*).*/__ClearPage\1/' \
197198 --regex='/TESTCLEARFLAG_FALSE\(([^,)]*).*/TestClearPage\1/' \
198− --regex='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/'
199+ --regex='/__TESTCLEARFLAG_FALSE\(([^,)]*).*/__TestClearPage\1/' \
200+ --regex='/_PE\(([^,)]*).*/PEVENT_ERRNO__\1/'
199201
200202 all_kconfigs | xargs $1 -a \
201203 --regex='/^[ \t]*\(\(menu\)*config\)[ \t]+\([a-zA-Z0-9_]+\)/\3/'