I dont want to actually implement it. Its just a sample problem, I want to know how it is implemented, so that I can learn the basics.
I cant understand the flow of control. If you provide me with a quick tutorial on how to solve the problem that I have given, I can quick start coding instead of spending time in analyzing 1000 lines of code. 2010/10/14 Ángel González <[email protected]> > Rahul Prasad wrote: > > Hello, > > > > I am a student, I want to contribute to wget, > > I have read the nicely written > > OptionHowTo<http://wget.addictivecode.org/OptionsHowto>but still need > > an example to demonstrate how everything is put together. > > > > This is what I want to do (Test case). > > I want to add an option *-rahul* which will enqueue a hardcoded url for > > downloading say http://rahulprasad.com/app/scratchpad/v0ride/text.txtalong > > with supplied url. > > Also > > I want to add another option *-override* which will just download the > hard > > coded url and discard supplied url. > > > > I have already added "rahul" and "override" in *main.c* as > > > > > > { "rahul", '', OPT_VALUE, "rahul", -1 }, > > { "override", '', OPT_VALUE, "override", -1 }, > > > > Added following line in *options.h* > > char *rahul; > > char *override; > > under *struct options* > > > > Added following lines in *init.c* > > { "rahul", &opt.rahul, cmd_string }, > > { "override", &opt.override, cmd_string }, > > under *commands[] * > > > > but I am facing difficulty on what to do next. > > Please help, so that I can start development > > > > I want to add batch download support to wget, but need to know how things > > work. > > Also please tell me how do we debug big projects like wget? > > and what IDE do you people use ? > > > > Regards, > > Rahul Prasad > > --------------------------------------------------------- > > Web: www.rahulprasad.com > > Why do you want to do all of this? > > You can add the url instead of using a patched wget with it hardcoded. > If so you want, you could make a small script which adds the url unless > -override is provided. > > > >
