Hacker GitHub

← All repos

drh/cii

View on GitHub ↗ ★ 703 C

C Interfaces and Implementations

5 mentions on Hacker News by 3 people: 1 story, 4 comments · first 2015-06-21 · latest 2025-11-10

Mentions per year 5 mentions · busiest year 2025 (2)
20082026
  1. …to pointers instead of pointers and set them to zero upon free-ing memory blocks; e.g. /* source: https://github.com/drh/cii/blob/master/src/arena.c */ void Arena_dispose(T *ap) { assert(ap && *ap); Arena_free(*ap); free(*ap); *ap = NULL;…
    comment by jll29 · 2025-11-10 · in XSLT RIP
  2. …topic is "C - Interfaces and Implementations" (known as CII) by David R. Hanson. His code is here: https://github.com/drh/cii
    comment by jll29 · 2025-07-26 · in Generic Containers in C: Vec
  3. …Techniques for Creating Reusable Software: https://drh.github.io/cii/ Example codes: https://github.com/drh/cii
    comment by teleforce · 2023-03-16 · in Designing Good Interfaces
  4. …in C. David Hanson, among many others, has a much better set of awesome macros for exactly this; https://github.com/drh/cii/blob/master/include/except.h
    comment by sovande · 2015-06-21 · in Exercise 20: Zed's Awesome Debug Macros