Mercurial > MadButterfly
comparison tools/mb_c_header.m4 @ 63:f4b792afa74e
m4 translator
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 12 Aug 2008 14:21:09 +0800 |
parents | 7d976d925431 |
children | c668c5c3ceae |
comparison
equal
deleted
inserted
replaced
62:7d976d925431 | 63:f4b792afa74e |
---|---|
1 changequote(`[', `]')dnl | 1 changequote(`[', `]')dnl |
2 define([ADD_LINEAR_PAINT],[[ paint_t *$1; | 2 divert([-1]) |
3 ]])dnl | 3 |
4 define([ADD_RADIAL_PAINT],[[ paint_t *$1; | 4 define([ADD_LINEAR_PAINT],[[ |
5 ]])dnl | 5 paint_t *$1; |
6 define([ADD_PATH],[[ shape_t *$1; | 6 ]]) |
7 ]])dnl | 7 |
8 define([ADD_RECT],[[ shape_t *$1; | 8 define([ADD_RADIAL_PAINT],[[ |
9 ]])dnl | 9 paint_t *$1; |
10 define([ADD_COORD],[[ coord_t *$1; | 10 ]]) |
11 ]])dnl | 11 define([ADD_PATH],[ |
12 dnl | 12 [ shape_t *$1; |
13 define([REF_STOPS],)dnl | 13 ]]) |
14 define([ADD_STOP],)dnl | 14 define([ADD_RECT],[ |
15 define([FILL_SHAPE],)dnl | 15 [ shape_t *$1; |
16 define([STROKE_SHAPE],)dnl | 16 ]]) |
17 define([FILL_SHAPE_WITH_PAINT],)dnl | 17 define([ADD_COORD],[ |
18 define([STROKE_SHAPE_WITH_PAINT],)dnl | 18 [ coord_t *$1; |
19 dnl | 19 ]]) |
20 define([COLOR_STOP],[ ]) | |
21 | |
22 define([REF_STOPS],) | |
23 define([FILL_SHAPE],) | |
24 define([STROKE_SHAPE],) | |
25 define([FILL_SHAPE_WITH_PAINT],) | |
26 define([STROKE_SHAPE_WITH_PAINT],) | |
27 | |
20 define([MADBUTTERFLY],[dnl | 28 define([MADBUTTERFLY],[dnl |
21 [#ifndef __$1_H_ | 29 [#ifndef __$1_H_ |
22 #define __$1_H_] | 30 #define __$1_H_] |
23 | 31 |
24 [typedef struct $1 $1_t;] | 32 [typedef struct $1 $1_t;] |
25 | 33 |
26 struct [$1] { | 34 struct [$1] { |
27 $2dnl | 35 $2[]dnl |
28 }; | 36 }; |
29 | 37 |
30 [#endif /* __$1_H_ */] | 38 [#endif /* __$1_H_ */] |
31 ])dnl | 39 ]) |
32 dnl | 40 divert[]dnl |