bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] QuickStart tutorial


From: Micah Cowan
Subject: Re: [Bug-wget] QuickStart tutorial
Date: Wed, 13 Oct 2010 17:33:41 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.12) Gecko/20100915 Thunderbird/3.0.8

Re-send: I meant to send this to the list as well, d'oh!

(10/12/2010 09:50 PM), Rahul Prasad wrote:
> I have already added "rahul" and "override" in *main.c* as
> 
> 
> { "rahul", '', OPT_VALUE, "rahul", -1 },
> { "override", '', OPT_VALUE, "override", -1 }

...

> Added following lines in *init.c*
> { "rahul",        &opt.rahul,        cmd_string },
> { "override",        &opt.override,        cmd_string },
> under *commands[] *

BE AWARE! These commands and option names MUST be inserted into the
relevant structures in alphabetical order (specifically, collation order
as determined by the C or POSIX locales).

I believe there's a Perl script somewhere in the util/ directory (only
in the development sources, not releases) that specifically runs a check
to verify that this is the case.

> but I am facing difficulty on what to do next.
> Please help, so that I can start development

Well, if the object is to insert a hard-coded URL, have a look in the
main() function, at the calls to retrieve_url and retrieve_tree, and how
the "url" variable is used. Probably look where memory for url (the
pointer to pointer to char) is allocated, too, to find an opportunity to
insert another url at the end, there.

> I want to add batch download support to wget, but need to know how things
> work.

Not sure what you mean by "batch download"? Isn't that what wget already
does?

> Also please tell me how do we debug big projects like wget?
> and what IDE do you people use ?

Debugging works like most C projects: you want to use a good debugger
like gdb. Finding out how to use that effectively isn't really within
the scope of this mailing list; you should try a forum that specifically
deals with it. There are good resources on the web, too.

As for IDEs, I'd say most C programmers in the Unix world don't use
them, preferring instead to use a powerful editor such as vim or emacs,
which basically provide the same features you'd typically find in an IDE
anyway. Especially if you use them in combination with ctags or cscope
(both emacs and vim have modules that provide integration with cscope,
and tags support are built in).

-- 
Micah J. Cowan
http://micah.cowan.name/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]