cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Protocol handler tables

From: Patrick Monnerat <Patrick.Monnerat_at_datasphere.ch>
Date: Fri, 12 Oct 2007 15:44:50 +0200

 

> I love it! And I also wouldn't mind seeing this committed before the
feature freeze...

Committed with the following changes and add-ons:

_ curl_-prefixes removed: "curl_do" --> "do" renamed "do_it" and
"curl_connect" --> "connect" renamed "connect_it"
_ All handlers and scheme field declared "const".
_ Callbacks declared static where possible.
_ A dummy handler table has been introduced for unknown schemes (seems
callbacks may be used even after an UNRECOGNIZED_PROTOCOL error).
Presence of handler tested where callbacks are used and connectdata
presence tested. These avoid potential null pointer dereferencing.
Received on 2007-10-12