comparison 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
comparison
equal deleted inserted replaced
332:f90c60967a9c 333:bdf36a26e420
1 changequote(`[', `]')dnl 1 changequote(`[', `]')dnl
2 divert([-1]) 2 divert([-1])
3 3
4 define([ADD_LINEAR_PAINT],[[ 4 define([ADD_LINEAR_PAINT],[
5 paint_t *$1; 5 [ paint_t *$1;
6 ]]) 6 ]])
7 7
8 define([ADD_RADIAL_PAINT],[[ 8 define([ADD_RADIAL_PAINT],[
9 paint_t *$1; 9 [ paint_t *$1;
10 ]]) 10 ]])
11 define([ADD_PATH],[ 11 define([ADD_PATH],[
12 [ shape_t *$1; 12 [ shape_t *$1;
13 ]]) 13 ]])
14 define([ADD_RECT],[ 14 define([ADD_RECT],[
25 shape_t *$1; 25 shape_t *$1;
26 ]]) 26 ]])
27 define([PANGO_BEGIN_TEXT],[ 27 define([PANGO_BEGIN_TEXT],[
28 [ shape_t *$1; 28 [ shape_t *$1;
29 ]]) 29 ]])
30 define([PANGO_END_TEXT],[ 30 define([PANGO_END_TEXT],[])
31 ])
32 define([PANGO_SIZE],[]) 31 define([PANGO_SIZE],[])
33 define([PANGO_STYLE],[]) 32 define([PANGO_STYLE],[])
34 define([PANGO_WEIGHT],[]) 33 define([PANGO_WEIGHT],[])
35 define([PANGO_FAMILY],[]) 34 define([PANGO_FAMILY],[])
36 define([COLOR_STOP],[ ]) 35 define([COLOR_STOP],[ ])
37 36
38 define([REF_STOPS_RADIAL],) 37 define([REF_STOPS_RADIAL],)
39 define([REF_STOPS_LINEAR],) 38 define([REF_STOPS_LINEAR],)
40 define([FILL_SHAPE],[[ 39 define([FILL_SHAPE],[
41 paint_t *$1_fill; 40 [ paint_t *$1_fill;
42 ]]) 41 ]])
43 define([STROKE_SHAPE],[[ 42 define([STROKE_SHAPE],[
44 paint_t *$1_stroke; 43 [ paint_t *$1_stroke;
45 ]]) 44 ]])
46 define([FILL_SHAPE_WITH_PAINT],) 45 define([FILL_SHAPE_WITH_PAINT],)
47 define([STROKE_SHAPE_WITH_PAINT],) 46 define([STROKE_SHAPE_WITH_PAINT],)
48 define([STROKE_WIDTH],) 47 define([STROKE_WIDTH],)
49 define([GROUP_HIDE],) 48 define([GROUP_HIDE],)