diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-11-16 15:19:33 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-11-16 15:20:32 -0500 |
commit | 0c80c2e45fc6632908d2189f2c15e8b4b473f76b (patch) | |
tree | bfd47137dc95e7ac645bbae8bd3a9f654b776e13 /src/lib/container/handles.h | |
parent | 5a1a60e65eb6904f383d18fae271684b4264acd9 (diff) | |
download | tor-0c80c2e45fc6632908d2189f2c15e8b4b473f76b.tar.gz tor-0c80c2e45fc6632908d2189f2c15e8b4b473f76b.zip |
handles.h: replace structname with structname_t
This change makes our macro bodies consistent with our naming
expectations for structs and types outside macro bodies.
Diffstat (limited to 'src/lib/container/handles.h')
-rw-r--r-- | src/lib/container/handles.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/container/handles.h b/src/lib/container/handles.h index b6dcadb6be..798c8a367c 100644 --- a/src/lib/container/handles.h +++ b/src/lib/container/handles.h @@ -57,12 +57,13 @@ #define HANDLE_ENTRY(name, structname) \ struct name ## _handle_head_t *handle_head -#define HANDLE_DECL(name, structname, linkage) \ +#define HANDLE_DECL(name, structname_t, linkage) \ typedef struct name ## _handle_t name ## _handle_t; \ - linkage name ## _handle_t *name ## _handle_new(struct structname *object); \ + linkage name ## _handle_t *name ## _handle_new( \ + struct structname_t *object); \ linkage void name ## _handle_free_(name ## _handle_t *); \ - linkage struct structname *name ## _handle_get(name ## _handle_t *); \ - linkage void name ## _handles_clear(struct structname *object); + linkage struct structname_t *name ## _handle_get(name ## _handle_t *); \ + linkage void name ## _handles_clear(struct structname_t *object); /* * Implementation notes: there are lots of possible implementations here. We |