[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [tor/master] handles.h: replace structname with structname_t



commit 0c80c2e45fc6632908d2189f2c15e8b4b473f76b
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Sat Nov 16 15:19:33 2019 -0500

    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.
---
 src/lib/container/handles.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/lib/container/handles.h b/src/lib/container/handles.h
index b6dcadb6b..798c8a367 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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits