scripts/tags.sh: fix DEFINE_HASHTABLE in emacs case
authorDirk Gouders <dirk@gouders.net>
Sat, 16 Aug 2014 05:56:58 +0000 (07:56 +0200)
committerMichal Marek <mmarek@suse.cz>
Tue, 19 Aug 2014 09:12:43 +0000 (11:12 +0200)
commit8e170655b517ba49bf4d015008474bcc2f425b20
tree76d70d4b975d9964eb6ec43fc6dbb8d485542214
parenta60113d6a7fca3320e84d25db84c3c1a5a02b505
scripts/tags.sh: fix DEFINE_HASHTABLE in emacs case

The emacs --regex for DEFINE_HASHTABLE produced a warning because of
an unmatched '\('.  Further, the whole entry did not work, because the
regex needs to match from the beginning of a line, including keywords
like 'static'.  Finally, '\w' should not be used, because it
stops at underscores which are often part of variable names in C,
resulting in wrong entries in the tags file.

Signed-off-by: Dirk Gouders <dirk@gouders.net>
Inspired-by: Masatake YAMATO <yamato@redhat.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/tags.sh