src: replace CONTAINER_OF with type-safe function
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 27 May 2014 21:31:31 +0000 (23:31 +0200)
committerFedor Indutny <fedor@indutny.com>
Fri, 30 May 2014 10:45:37 +0000 (11:45 +0100)
commit820aaf5b3d2728d900ba0ff8903d343840766912
tree7d92e15e13be35090b64746efe5e05fc9e3aa735
parentc7b02034ef80313564c50c59c63a5b640c24e234
src: replace CONTAINER_OF with type-safe function

Replace the CONTAINER_OF macro with a template function that is as
type-safe as a reinterpret_cast<> of an arbitrary pointer can be made.

Signed-off-by: Fedor Indutny <fedor@indutny.com>
12 files changed:
src/cares_wrap.cc
src/env-inl.h
src/node.cc
src/node_crypto.cc
src/node_http_parser.cc
src/node_v8.cc
src/node_zlib.cc
src/signal_wrap.cc
src/stream_wrap.cc
src/tls_wrap.cc
src/util-inl.h
src/util.h