curl / Mailing Lists / curl-library / Single Mail
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: Where is curlx_dyn_addn defined?

From: Dan Fandrich via curl-library <curl-library_at_lists.haxx.se>
Date: Tue, 28 May 2024 16:27:14 -0700

On Tue, May 28, 2024 at 05:52:08PM -0500, Bill Pierce via curl-library wrote:
> I like to figure things like this out myself. I find that it's the best way to learn how things work. So, I
> grabbed the sources from github using Git Bash on May 24, 2024, but when I tried to compile a test program
> with selected libcurl files, curlx_dyn_addn was undefined. I found that it is called in many places in the
> libcurl sources using Windows Explorer's search feature, but I couldn't find where it is defined.

It's called Curl_dyn_addn() in the source (in lib/dynbuf.c), but it's renamed to curlx_dyn_addn with a macro in lib/dynbuf.h. It's a bit backwards, but there are reasons.

Dan
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-05-29