VPP-327 Coding standards cleanup for vppinfra
[vpp.git] / vppinfra / vppinfra / test_macros.c
index 038ad68..de8f2c4 100644 (file)
 
 macro_main_t macro_main;
 
-int test_macros_main (unformat_input_t * input)
+int
+test_macros_main (unformat_input_t * input)
 {
-  macro_main_t * mm = &macro_main;
+  macro_main_t *mm = &macro_main;
 
-  clib_macro_init(mm);
+  clib_macro_init (mm);
 
-  fformat (stdout, "hostname: %s\n", 
-           clib_macro_eval_dollar (mm, "hostname", 1 /* complain */));
+  fformat (stdout, "hostname: %s\n",
+          clib_macro_eval_dollar (mm, "hostname", 1 /* complain */ ));
 
   clib_macro_set_value (mm, "foo", "this is foo which contains $(bar)");
   clib_macro_set_value (mm, "bar", "bar");
 
   fformat (stdout, "evaluate: %s\n",
-           clib_macro_eval (mm, "returns '$(foo)'", 1 /* complain */));
+          clib_macro_eval (mm, "returns '$(foo)'", 1 /* complain */ ));
 
   clib_macro_free (mm);
 
@@ -39,7 +40,8 @@ int test_macros_main (unformat_input_t * input)
 }
 
 #ifdef CLIB_UNIX
-int main (int argc, char * argv[])
+int
+main (int argc, char *argv[])
 {
   unformat_input_t i;
   int ret;
@@ -52,3 +54,11 @@ int main (int argc, char * argv[])
 }
 #endif /* CLIB_UNIX */
 
+
+/*
+ * fd.io coding-style-patch-verification: ON
+ *
+ * Local Variables:
+ * eval: (c-set-style "gnu")
+ * End:
+ */