diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-06-29 10:23:52 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-06-29 12:21:52 -0400 |
commit | 207fc4cffe21b58b7f0447706a903e5f66b8bcd8 (patch) | |
tree | 227fddeea8281eac9b95a351c4f733ada1906034 /src/common | |
parent | 77bc65bbc495095d4d2679631e06a498ea1e2529 (diff) | |
download | tor-207fc4cffe21b58b7f0447706a903e5f66b8bcd8.tar.gz tor-207fc4cffe21b58b7f0447706a903e5f66b8bcd8.zip |
Move SUBTYPE_P into compat_compiler.h
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/util.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/common/util.h b/src/common/util.h index c59c79c30e..032842d8dc 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -43,18 +43,6 @@ #include "lib/encoding/cstring.h" #include "lib/fs/winlib.h" -/** Macro: yield a pointer to an enclosing structure given a pointer to - * a substructure at offset <b>off</b>. Example: - * <pre> - * struct base { ... }; - * struct subtype { int x; struct base b; } x; - * struct base *bp = &x.base; - * struct *sp = SUBTYPE_P(bp, struct subtype, b); - * </pre> - */ -#define SUBTYPE_P(p, subtype, basemember) \ - ((void*) ( ((char*)(p)) - offsetof(subtype, basemember) )) - /* Math functions */ /* String manipulation */ |