473,396 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Source navigation

Hi,

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

Thnx
PAolo

Mar 28 '07 #1
7 1504
On 28 Mar, 19:01, "PAolo" <paolopanta...@gmail.comwrote:
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
What exactly is it about vim's interface to ctags that
you don't like? Is ^] too difficult to type? I highly
recommend spending the time to learn vim--you'll find
the time you invest will pay off substantially in the
long run. When you say "can't use emacs", do you mean
it's not available to you, or you don't know how to
use it? If you plan to spend a substantial amount
of time coding, learn to use your editor and learn
it well. The tool I suggest is vim, as I find it
far more user friendly and intuitive than Eclipse.
I would guess that we have strongly differing definitions
on the phrase "user friendly". :)

Mar 28 '07 #2

"PAolo" <pa***********@gmail.comwrote in message
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
Emacs will do everything you want, if you can be bothered to learn it. If
you can't, grep is a wonderful tool.

--
Free games and programming goodies.
http://www.personal.leeds.ac.uk/~bgy1mm

Mar 28 '07 #3
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
Doxygen might help. It will let you generate hyperlinked documentation
from the code.

--
EventStudio 4.0 - http://www.EventHelix.com/EventStudio
Sequence Diagram based System Modeling Tool
Mar 29 '07 #4
"PAolo" <pa***********@gmail.comschrieb im Newsbeitrag
news:11**********************@d57g2000hsg.googlegr oups.com...
Hi,

I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.

I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?
Maybe cscope would do for you. Although, if you don't like vim, you might
not like cscope too..

Bye, Jojo
Mar 29 '07 #5
On 28 Mar, 20:54, "Bill Pursell" <bill.purs...@gmail.comwrote:
On 28 Mar, 19:01, "PAolo" <paolopanta...@gmail.comwrote:
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.
I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

What exactly is it about vim's interface to ctags that
you don't like? Is ^] too difficult to type? I highly
recommend spending the time to learn vim--you'll find
the time you invest will pay off substantially in the
long run. When you say "can't use emacs", do you mean
it's not available to you, or you don't know how to
use it? If you plan to spend a substantial amount
of time coding, learn to use your editor and learn
it well. The tool I suggest is vim, as I find it
far more user friendly and intuitive than Eclipse.
I would guess that we have strongly differing definitions
on the phrase "user friendly". :)
Well, I can use vim, and I like it, but I found messy to work with
many files and vim, but actually I never spent the time to learn
advanced stuff.

I'm not sure about that, but I think that vim hasn't the
autocompletion feature like Eclipse (based on API definition) and many
more tools, and this is very bad for big projects, and for other
languages. Moreover vim is quite nasty to use when writing Python,
because it hasn't a one click easy way to comment and uncomment
code... well vim is not perfect, as every editor.

Well for now, yes, I will use vim and ctrl + ], it seems the fastest
solution. But I don't like the idea to spend tens of hours learning an
editor.

Thnx all for response.

PAolo
Mar 29 '07 #6
On 29 Mar, 14:32, "Joachim Schmitz" <nospam.schm...@hp.comwrote:
"PAolo" <paolopanta...@gmail.comschrieb im Newsbeitragnews:11**********************@d57g2000h sg.googlegroups.com...Hi,
I'm reading a quite big program (written by someone else), and I need
to navigate the code, that is find the function definition by the
name, and possibly find the #defines for a given expression too.
I know that vim can do it with ctags, and emacs too, but I can't use
emacs, and I find vim is not user friendly enought for such a task. I
use Eclipse, but it seems to fail to find the function definition.
Can you suggest me a tool that can do the work, that is user friendly,
open source (or at least free) for Linux?

Maybe cscope would do for you. Although, if you don't like vim, you might
not like cscope too..

Bye, Jojo
Thnx for the advice, I'm trying to use kscope, that seems quite user
friendly -according to my definition :)

PAolo

Mar 29 '07 #7
On Mar 29, 9:41 am, "PAolo" <paolopanta...@gmail.comwrote:
On 28 Mar, 20:54, "Bill Pursell" <bill.purs...@gmail.comwrote:
<snip>
I'm not sure about that, but I think that vim hasn't the
autocompletion feature like Eclipse
I believe it does. I don't remember how I used it but you can check on
their website (http://www.vim.org). They have some good tips there.

--
Ioan - Ciprian Tandau
tandau _at_ freeshell _dot_ org (hope it's not too late)
(... and that it still works...)

Mar 29 '07 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ngoc | last post by:
Hi I want to make homepage with javascript for drop down navigation menu. Looking around some webpages, I see javascript code is embedded in html code. It is ugly and unmaintainable. Are there any...
1
by: Robert Neville | last post by:
I am having some trouble with some old code revolving around custom form navigation buttons. My main form has a sub-form with these custom navigation buttons. In other words, the code should be...
6
by: John Dalberg | last post by:
Why does IE not show the full html source when I try to view the source?? I mean why does it hide a few features. Previously I had an issue where the data grid html representation was hidden in...
4
by: Sandy.Pittendrigh | last post by:
I don't want to get into a frames discussion here. We all know they have numerous drawbacks, especially with search engine visibility. (Google, ironically, uses framesets for displaying individual...
28
by: laredotornado | last post by:
Hi, Surprisingly, I can't get the drop down menus to work on PC IE 6. If you roll over "PRODUCTS", normally a drop down menu appears (on Safari and Firefox), but on PC IE, nada. ...
3
by: Paul | last post by:
I want the <div id="navigation"column to be the same color all the way to the bottom. The "background-image: url(bg_menu_tile.gif);" was a try to force it with a long 1-pixel graphic - didn't...
10
by: EA | last post by:
I am sure I must be missing something about building navigation bars with CSS. Yes it is a very clever and efficient way to format navigation structures on simple one navigation level webs, i.e....
1
by: quartzy | last post by:
I have a strict doc type: However, I am still unsure about css. Problems I have now are to do with floating both navigation lists. I have used tables and divs, as layouts are just too difficult for...
0
by: emalcolm_FLA | last post by:
Hello and TIA for your consideration. I have created several db's for a non-profit and they want custom navigation buttons to display "You are on the first record, last record, etc". With this...
8
by: martinsmith160 | last post by:
Hi everyone I am trying to create a simple wpf program that allows a user to select an image from a combo box and then where they click on th screen draw that image at the mouse co-ordinates. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.