cURL / Mailing Lists / curl-library / Single Mail


typedef void CURL - compiler typechecking

From: Gerrit Bruchhäuser <>
Date: Mon, 19 Mar 2007 10:05:42 +0100

Dear Curl-dev team,

The "typedef void CURL" in 'curl/curl.h' (and other void typedefs) disable
compiletime typechecking. Please let me suggest to replace it with:

        typedef struct Curl_multi* CURL;

This will still hide the internal structure but allow the compiler to check if
the type is correct.

best regards,
Gerrit Bruchhaeuser

SD "Entertainment & Services"

Phone +49 7248 928 - 0
Fax +49 7248 928 - 499

Nero AG
Im Stoeckmaedle 13-15
76307 Karlsbad

Vorstand/CEO: Richard Lesser
Aufsichtsratvorsitzender/Chairman of the board: Jim Corbett
Amtsgericht Mannheim HRB 362519
This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have
received this e-mail in error) please notify the sender
immediately and destroy this e-mail.
Any unauthorised copying, disclosure or distribution of the
material in this e-mail is strictly forbidden.
Received on 2007-03-19