Overview of the wget source code

2007-07-23 Thread Himanshu Gupta
Hi,

Can somebody please point me to a document, which could provide me an overview 
of the classes in source code. I've downloaded the code and have no idea of how 
to go about reading the code. 

I warmly welcome any suggestions on how to understand the wget source code? 
or any document, tutorial.

Thanks 
Himanshu
 
   
-
Got a little couch potato? 
Check out fun summer activities for kids.

Re: Overview of the wget source code

2007-07-23 Thread Micah Cowan
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Himanshu Gupta wrote:
 Hi,

Hi!

 Can somebody please point me to a document, which could provide me an
 overview of the classes in source code. I've downloaded the code and
 have no idea of how to go about reading the code.
 
 I warmly welcome any suggestions on how to understand the wget source
 code? or any document, tutorial.

Unfortunately, there isn't one; and isn't likely to be one in the near
future especially since a lot of the code is likely to be reworked
before too terribly long.

The best thing to do is just to read it, and follow up the parts you
don't understand.

BTW, there aren't any classes, which may be part of your confusion: C
has no such concept; the closest is C structs (which in C++ define
classes). While some of the code is at least vaguely object-oriented in
style, I don't really think you could apply that term to Wget's source
in general.

However, the source files are fairly clearly named, and most (all?)
functions have a brief description associated with them, as do the
source files. For example, http.c contains the HTTP protocol-related
code, recur.c manages recursive fetching, html-parse.c handles HTML
parsing, etc.

- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGpNDH7M8hyUobTrERCFMvAJ9tiFY2JUWwyllORzYLtTn3Mja3MgCfb1Xv
doQQczsoQofB6hmYNt1gRCY=
=QMU3
-END PGP SIGNATURE-


RE: Problem with combinations of the -O , -p, and -k parameters in wget

2007-07-23 Thread Tony Lewis
Michiel de Boer wrote:

 Is there another way though to achieve the same thing?

You can always run wget and then rename the file afterward. If this happens
often, you might want write a shell script to handle it. Of course, If you
want all the references to the file to be converted, the script will be a
little more complicated. :-)

Tony