[Tinyos-help] nesC and ctags

Baik, Jin-serk jinserk at gmail.com
Fri Jun 8 07:40:38 PDT 2007


Hello,

I wanna use ctags in .nc files, so searched this mailing list and
found a good article from Jan Hauer on Nov 1, 2004 PST.
He mensioned to try the following:

ctags --regex-c='/^module[ \t]*([a-zA-Z0-9_]+)/\1/d,definition/'
--regex-c='/^configuration[ \t]*([a-zA-Z0-9_]+)/\1/d,definition/'
--regex-c='/^interface[ \t]*([a-zA-Z0-9_]+)/\1/d,definition/'
--langmap=c:.nc.h --language-force=c $SCAN_PATH

Where SCAN_PATH points to whatever paths you want to be searched,
separated by blanks (e.g. export SCAN_PATH="./*
$TOSDIR/platform/msp430/* $TOSDIR/interfaces/*").

I tried this and saw it works for the module, configuration and the
interface tags. However, it doesn't work for the event, command
or task. How can I do that for those tags ?

Any Ideas?


Jin-serk Baik



More information about the Tinyos-help mailing list