diff tools/mb_c_header.m4 @ 333:bdf36a26e420

Make generated code clean. - Before changes, generated code include a lot of redundant empty lines. - Add dnl after each command when svg2code.py generates code lines.
author Thinker K.F. Li <thinker@branda.to>
date Sat, 07 Mar 2009 10:55:42 +0800
parents c8b6ca46950b
children 3e84458968ec
line wrap: on
line diff
--- a/tools/mb_c_header.m4	Sat Mar 07 08:33:01 2009 +0800
+++ b/tools/mb_c_header.m4	Sat Mar 07 10:55:42 2009 +0800
@@ -1,12 +1,12 @@
 changequote(`[', `]')dnl
 divert([-1])
 
-define([ADD_LINEAR_PAINT],[[
-    paint_t *$1;
+define([ADD_LINEAR_PAINT],[
+[    paint_t *$1;
 ]])
 
-define([ADD_RADIAL_PAINT],[[
-    paint_t *$1;
+define([ADD_RADIAL_PAINT],[
+[    paint_t *$1;
 ]])
 define([ADD_PATH],[
 [    shape_t *$1;
@@ -27,8 +27,7 @@
 define([PANGO_BEGIN_TEXT],[
 [    shape_t *$1;
 ]])
-define([PANGO_END_TEXT],[
-])
+define([PANGO_END_TEXT],[])
 define([PANGO_SIZE],[])
 define([PANGO_STYLE],[])
 define([PANGO_WEIGHT],[])
@@ -37,11 +36,11 @@
 
 define([REF_STOPS_RADIAL],)
 define([REF_STOPS_LINEAR],)
-define([FILL_SHAPE],[[
-    paint_t *$1_fill;
+define([FILL_SHAPE],[
+[    paint_t *$1_fill;
 ]])
-define([STROKE_SHAPE],[[
-    paint_t *$1_stroke;
+define([STROKE_SHAPE],[
+[    paint_t *$1_stroke;
 ]])
 define([FILL_SHAPE_WITH_PAINT],)
 define([STROKE_SHAPE_WITH_PAINT],)