* CCAN update for 2015-10
@ 2015-11-01 4:40 Rusty Russell
0 siblings, 0 replies; only message in thread
From: Rusty Russell @ 2015-11-01 4:40 UTC (permalink / raw)
To: ccan; +Cc: Paul Wayper
Hi!
I spend four hours on optimizing memeqzero, as you can see from
my blog post at http://rusty.ozlabs.org/?p=560
Module of the Month: tcon (CC0)
==============================
tcon is a subtle module for other modules to create type canaries: eg,
ccan/tlist has a TLIST_TYPE(name, type) which declares a list which
holds "type". tcon provides TCON_WRAP() helpers to add a canary to a
declaration tcon_unwrap() to access it, and tcon_check() to warns if an
expression isn't the same type as the canary.
In addition, canaries can now encode positive compile-time values using
TCON_VALUE, which can be accessed using tcon_value.
New modules:
============
lpq: simple priority queue (David Gibson)
Minor updates & bugfixes:
========================
isaac: info formatting fixes (Paul Wayper)
lqueue/lstack: use ccan/tcon (David Gibson)
mem: new routine memiszero
opt: don't use malloc for errors if they set opt_allocator.
order: total_order_cmp helper (David Gibson)
ptrint: CONST_FUNCTION annotation (David Gibson)
tal/str: fix for tal_strndup() of non-nul terminated strings
tcon: make it useful in more situations (David Gibson)
Cheers,
Rusty.
_______________________________________________
ccan mailing list
ccan@lists.ozlabs.org
https://lists.ozlabs.org/listinfo/ccan
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-11-01 4:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-01 4:40 CCAN update for 2015-10 Rusty Russell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox