]> granicus.if.org Git - strace/commit
Add a generic list implementation
authorEugene Syromyatnikov <evgsyr@gmail.com>
Sun, 11 Sep 2016 09:11:45 +0000 (12:11 +0300)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 6 Mar 2019 23:20:39 +0000 (23:20 +0000)
commit0e1b907215b7f3cdd5eb6cc643ef09bdb3839817
treecab7e5e109848b7a5be9465055ce18e9469ab930
parentb307a94e09a70ee7e2c4d7c2c65da7cf052109a0
Add a generic list implementation

Similar to the one used in the Linux kernel.

* macros.h (cast_ptr, containerof): New macros.
* list.h: New file.
* Makefile.am (strace_SOURCES): Add it.
Makefile.am
list.h [new file with mode: 0644]
macros.h