(Remove html character entities) |
(Change <tt> to <code>, perhaps also minor tweak.) |
||
(One intermediate revision by one other user not shown) | |||
Line 4: | Line 4: | ||
|previous=402 |
|previous=402 |
||
|next=405 |
|next=405 |
||
− | |created= |
+ | |created=2003 |
|complexity=basic |
|complexity=basic |
||
|author=Vasudev Nayak |
|author=Vasudev Nayak |
||
|version=5.7 |
|version=5.7 |
||
|rating=0/2 |
|rating=0/2 |
||
− | |category1= |
+ | |category1=Navigation |
|category2= |
|category2= |
||
}} |
}} |
||
Line 16: | Line 16: | ||
The solution: |
The solution: |
||
#Make a copy of the 'tags' file. |
#Make a copy of the 'tags' file. |
||
− | #Search and replace all variables and functions of C files with _variables and _functions in the copy file, say 'Tags' – for example, in Vim < |
+ | #Search and replace all variables and functions of C files with _variables and _functions in the copy file, say 'Tags' – for example, in Vim <code>:g/\.c\>/s/^\(\l.\)/_\1/</code> |
− | #In Vim < |
+ | #In Vim <code>:set tags=tags,Tags</code> |
#Use Ctrl-] to sail through. |
#Use Ctrl-] to sail through. |
||
==Comments== |
==Comments== |
||
+ | What on earth does this accomplish? How does this get the assembly symbols in the tags files? Why doesn't it work out-of-the-box (what problem does this solve)? |
||
+ | |||
+ | --[[User:Fritzophrenic|Fritzophrenic]] 15:31, May 3, 2011 (UTC) |
Latest revision as of 05:28, 13 July 2012
Tip 404 Printable Monobook Previous Next
created 2003 · complexity basic · author Vasudev Nayak · version 5.7
While accessing C functions/variables from assembly (especially for those DSP/low level guys out there) the usual exuberant ctags doesn't work.
The solution:
- Make a copy of the 'tags' file.
- Search and replace all variables and functions of C files with _variables and _functions in the copy file, say 'Tags' – for example, in Vim
:g/\.c\>/s/^\(\l.\)/_\1/
- In Vim
:set tags=tags,Tags
- Use Ctrl-] to sail through.
Comments[]
What on earth does this accomplish? How does this get the assembly symbols in the tags files? Why doesn't it work out-of-the-box (what problem does this solve)?
--Fritzophrenic 15:31, May 3, 2011 (UTC)