Tuesday, 11 March 2014

Re: Understanding the netsurf code

On Tue, Mar 11, 2014 at 03:09:34AM +0100, Acho Arnold wrote:
> Good day Guys
> I was looking through the source code for netsurf and I had these issues:
> I could have asked them on IRC but I only have internet connection
> in the night when most of the IRC guys
> are not around
>
> 1) I am using netsurf with linux (with gtk frontend) and I wish to
> ask where does the executable start?
> when type ./nsgtk, which main funcion is called? is it the one at gtk/gui.c?

It varies depending on front end. My advice would be to grep for the
main() function.

> 2) Is there a means to know which functions are netsurf functions
> and which are standard C functions? It took me some time to decide
> if a fuction like die() was a function from A C library or not

Knowledge of C :)

> and lastly,
> 3) Is there a means t determine specifically where a function is
> defined, beacuse I always to a recursive search in the netsurf
> directory before finding where functions or Macros are defined? We
> could use a program like doxygen to generate some docs with a great
> searching capabilities

You can try using Exuberant ctags to generate a tag file that your text
editor, should it support tag files, will let you query.

B.

No comments:

Post a Comment