]> git.ozlabs.org Git - ccan/commit
tal/autoptr: new module.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 04:34:30 +0000 (15:04 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 29 Dec 2016 23:12:44 +0000 (09:42 +1030)
commit97ac5832db26f5f836fff979b08f01e17d7216bd
treeabb0cfcab94c5e2bb219f383d4c80cd3ff346f7f
parent58277ab6c8b4dd6bb66638b88bd8505f46fdcb07
tal/autoptr: new module.

Helps with the common case of wanting to NULL out a pointer when the object
freed.  We could also track it if resized, but that's TODO.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ccan/tal/autoptr/LICENSE [new symlink]
ccan/tal/autoptr/_info [new file with mode: 0644]
ccan/tal/autoptr/autoptr.c [new file with mode: 0644]
ccan/tal/autoptr/autoptr.h [new file with mode: 0644]
ccan/tal/autoptr/test/run.c [new file with mode: 0644]