]> git.sur5r.net Git - openocd/commit
move container_of to types.h
authorZachary T Welch <zw@superlucidity.net>
Mon, 16 Nov 2009 10:29:09 +0000 (02:29 -0800)
committerZachary T Welch <zw@superlucidity.net>
Mon, 16 Nov 2009 17:57:59 +0000 (09:57 -0800)
commitf0ce88b3af9a6090ac986160950d66317de5087e
tree5f652f85f5d6ab9109692049990dc676af00dfe3
parentcbc05783727122f0052fe6f3be40635eb73ec5bc
move container_of to types.h

The container_of macro is useful as a general solution.  It belongs
in types.h, rather than target.h where it was introduced.  Requires
the offsetof macro, which comes from <stddef.h> (moved as well).
src/helper/types.h
src/target/target.h