CDS — C Data Structures — Release Notes
=========================================

1.03  (2026-06-03)
------------------

New structures
~~~~~~~~~~~~~~

* xl.h — Intrusive XOR linked list.  Doubly traversable with a single
  uintptr_t link field per node (one pointer's worth of space instead of
  two).  Same API shape as dl.h where the underlying mechanics allow:

      XL_LINK(T)
      XL_DEFINE(name, node_t, link_field)

      name_init, name_empty, name_count, name_front, name_back,
      name_push_front, name_push_back,
      name_pop_front,  name_pop_back,
      name_remove(h, n),
      name_iter_init/next/rewind  (bidirectional)

  Ends operations are O(1); remove-by-node-pointer is O(n) because the
  predecessor must be located by walking from the head.  Demo and
  benchmark included; the bench prints sizeof comparison with dl.h.

* tl.h — Thing list: a dynamic array of opaque void* pointers.  The
  only non-intrusive, non-macro-instantiated container in CDS.  Suitable
  for collections held by pointer that need random access, sorting,
  or linear/binary search.  API:

      tl_t, tl_cmp_fn, TL_NOT_FOUND

      tl_init, tl_init_cap, tl_free, tl_free_all, tl_clear,
      tl_count, tl_capacity, tl_data, tl_at, tl_set,
      tl_reserve, tl_push_back, tl_pop_back, tl_insert, tl_remove,
      tl_swap, tl_sort, tl_lsearch, tl_bsearch,
      tl_load_lines, tl_load_file,
      tl_cmp_str, tl_cmp_ptr

  Comparators follow the qsort/bsearch convention; the same comparator
  drives sort, linear search, and binary search.

Manual (cds_manual.tex / .pdf)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

* New chapters: "XOR Linked List (xl.h)" and "Thing List (tl.h)".
* "Seven headers" updated to "nine" throughout.
* Complexity Summary expanded to nine columns with xl and tl rows, plus
  footnotes covering the new operation classes.
* Function Quick Reference now lists xl.h and tl.h.
* Front matter and footer renumbered to "Version 1.03".

Build system (Makefile)
~~~~~~~~~~~~~~~~~~~~~~~

* DEMOS:   adds xl_demo and tl_demo.
* BENCHES: adds xl_bench and tl_bench.
* `make demo`, `make test`, and `make man` extended to cover xl and tl.

Man pages
~~~~~~~~~

* xl.3 — covers XL_LINK, XL_DEFINE, all generated functions,
  complexity/space comparison with dl, and the implementation-defined
  pointer-XOR portability note.
* tl.3 — covers the concrete tl_* API, the comparator convention, and
  the loading helpers.

Compatibility
~~~~~~~~~~~~~

* No source incompatibility with 1.02.  All previously released headers
  (sl, dl, ht, avl, pt, ph, uf) are byte-for-byte unchanged.
* Builds on Linux and FreeBSD with cc -std=c17 -O2 -Wall -Wextra
  -D_POSIX_C_SOURCE=200809L.  No new external dependencies.

1.02  (2026-05-11)
------------------

* Initial public release: sl.h, dl.h, ht.h, avl.h, pt.h, ph.h, uf.h
  with accompanying demos, benchmarks, man pages, and reference
  manual.
