comparison tools/mb_c_header.m4 @ 62:7d976d925431

Generate C header files for SVG files.
author Thinker K.F. Li <thinker@branda.to>
date Tue, 12 Aug 2008 08:48:16 +0800
parents
children f4b792afa74e
comparison
equal deleted inserted replaced
61:db5f203d7c19 62:7d976d925431
1 changequote(`[', `]')dnl
2 define([ADD_LINEAR_PAINT],[[ paint_t *$1;
3 ]])dnl
4 define([ADD_RADIAL_PAINT],[[ paint_t *$1;
5 ]])dnl
6 define([ADD_PATH],[[ shape_t *$1;
7 ]])dnl
8 define([ADD_RECT],[[ shape_t *$1;
9 ]])dnl
10 define([ADD_COORD],[[ coord_t *$1;
11 ]])dnl
12 dnl
13 define([REF_STOPS],)dnl
14 define([ADD_STOP],)dnl
15 define([FILL_SHAPE],)dnl
16 define([STROKE_SHAPE],)dnl
17 define([FILL_SHAPE_WITH_PAINT],)dnl
18 define([STROKE_SHAPE_WITH_PAINT],)dnl
19 dnl
20 define([MADBUTTERFLY],[dnl
21 [#ifndef __$1_H_
22 #define __$1_H_]
23
24 [typedef struct $1 $1_t;]
25
26 struct [$1] {
27 $2dnl
28 };
29
30 [#endif /* __$1_H_ */]
31 ])dnl
32 dnl