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.

llist cleanups

From: Daniel Stenberg via curl-library <curl-library_at_lists.haxx.se>
Date: Mon, 12 Aug 2024 13:34:36 +0200 (CEST)

Hello,

Just wanted to briefly mentioned that I just landed a cleanup of the
Curl_llist internal module and API.

This API is now documented at
https://github.com/curl/curl/blob/master/docs/LLIST.md

Things fixed today:

  - No more macros or accessing struct fields directly. Only function calls.
  - Some functions were renamed
  - One of struct is renamed
  - Each llist function has a set of asserst to verify API use
  - Each node struct now links to the list, so removing a node no longer needs
    the list specified
  - To make sure there is no existing code accessing llist struct fields, I
    renamed all struct fields to be underscore prefixed.
  - I found and fixed maybe three minor internal llist API misuses

I think code using this API became a little easier to read and manage.

-- 
  / daniel.haxx.se
  | Commercial curl support up to 24x7 is available!
  | Private help, bug fixes, support, ports, new features
  | https://curl.se/support.html
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2024-08-12