Prettify C output with newlines
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 25 Nov 2014 21:41:55 +0000 (16:41 -0500)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 25 Nov 2014 21:42:08 +0000 (16:42 -0500)
barectf/cli.py

index ae37293da699fac0674070724724cca21aae18cc..c0945da70d2fe6c5bf3736100ce4003f45c0461d 100644 (file)
@@ -1375,6 +1375,7 @@ class BarectfCodeGenerator:
         # out of space)
         line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT)
         clines.append(_CLine(line))
+        clines.append(_CLine(''))
 
         # packet context fields
         fcline_groups = []
@@ -1493,9 +1494,9 @@ class BarectfCodeGenerator:
         # out of space)
         line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT)
         clines.append(_CLine(line))
+        clines.append(_CLine(''))
 
         # set context parameters
-        clines.append(_CLine(''))
         clines.append(_CLine("/* barectf context parameters */"))
         clines.append(_CLine('ctx->buf = buf;'))
         clines.append(_CLine('ctx->packet_size = buf_size * 8;'))
@@ -1774,6 +1775,7 @@ class BarectfCodeGenerator:
         # out of space)
         line = 'uint32_t ctx_at_begin = {};'.format(self._CTX_AT)
         clines.append(_CLine(line))
+        clines.append(_CLine(''))
 
         # event header
         fcline_groups = []
This page took 0.024204 seconds and 4 git commands to generate.