Convert M() and M2() macros to honor their second, mp, parameter. 83/4983/4
authorJon Loeliger <jdl@netgate.com>
Tue, 31 Jan 2017 19:47:08 +0000 (13:47 -0600)
committerDave Barach <openvpp@barachs.net>
Thu, 2 Feb 2017 17:30:40 +0000 (17:30 +0000)
Now that all the M() and M2() uses properly supply a message
pointer as second parameter, fix the macros to use it.

Change-Id: I0b8f4848416c3fa2e06755ad6ea7171b7c546124
Signed-off-by: Jon Loeliger <jdl@netgate.com>
build-root/emacs-lisp/plugin-test-skel.el
src/vlibapi/vat_helper_macros.h

index 23f792f..d69aa2c 100644 (file)
@@ -109,7 +109,7 @@ _(" PLUGIN-NAME "_ENABLE_DISABLE_REPLY, " plugin-name "_enable_disable_reply)
 
 /* M: construct, but don't yet send a message */
 
-#define M(T,t)                                                  \\
+#define M(T, mp)                                                \\
 do {                                                            \\
     vam->result_ready = 0;                                      \\
     mp = vl_msg_api_alloc(sizeof(*mp));                         \\
@@ -118,7 +118,7 @@ do {                                                            \\
     mp->client_index = vam->my_client_index;                    \\
 } while(0);
 
-#define M2(T,t,n)                                               \\
+#define M2(T, mp, n)                                            \\
 do {                                                            \\
     vam->result_ready = 0;                                      \\
     mp = vl_msg_api_alloc(sizeof(*mp)+(n));                     \\
index dc91c9f..b2fbb86 100644 (file)
@@ -20,7 +20,7 @@
 #define __vat_helper_macros_h__
 
 /* M: construct, but don't yet send a message */
-#define M(T,t)                                                  \
+#define M(T, mp)                                                \
 do {                                                            \
     vam->result_ready = 0;                                      \
     mp = vl_msg_api_alloc_as_if_client(sizeof(*mp));            \
@@ -29,7 +29,7 @@ do {                                                            \
     mp->client_index = vam->my_client_index;                    \
 } while(0);
 
-#define M2(T,t,n)                                               \
+#define M2(T, mp, n)                                            \
 do {                                                            \
     vam->result_ready = 0;                                      \
     mp = vl_msg_api_alloc_as_if_client(sizeof(*mp)+(n));        \