Buy commercial curl support. We
help you work out your issues, debug your libcurl applications, use the API,
port to new platforms, add new features and more. With a team lead by the
curl founder Daniel himself.
Re: missing const in prototypes
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Sun, 23 Nov 2025 19:06:22 +0100 (CET)
On Sun, 23 Nov 2025, Patrick Monnerat via curl-library wrote:
> I'm aware changing our prototype definitions may cause existing programs to
> fail compilation, but I wonder if it is intentional we do not have const in
> the following declarations (upper case CONST added to show where):
It was just omitted when we made them and then we don't change them. They
probably should have been made const.
> In case we do not want to change them, why not saying in docs they should be
> treated as such ?
If you think the documentation benefits from such a mention, please go ahead
and make such proposed change.
Date: Sun, 23 Nov 2025 19:06:22 +0100 (CET)
On Sun, 23 Nov 2025, Patrick Monnerat via curl-library wrote:
> I'm aware changing our prototype definitions may cause existing programs to
> fail compilation, but I wonder if it is intentional we do not have const in
> the following declarations (upper case CONST added to show where):
It was just omitted when we made them and then we don't change them. They
probably should have been made const.
> In case we do not want to change them, why not saying in docs they should be
> treated as such ?
If you think the documentation benefits from such a mention, please go ahead
and make such proposed change.
-- / daniel.haxx.se || https://rock-solid.curl.dev -- Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2025-11-23