diff tools/mb_c_header.m4 @ 64:c668c5c3ceae

M4 macro for C binding.
author Thinker K.F. Li <thinker@branda.to>
date Wed, 13 Aug 2008 02:07:40 +0800
parents f4b792afa74e
children 3f2872a1a2fe
line wrap: on
line diff
--- a/tools/mb_c_header.m4	Tue Aug 12 14:21:09 2008 +0800
+++ b/tools/mb_c_header.m4	Wed Aug 13 02:07:40 2008 +0800
@@ -20,8 +20,12 @@
 define([COLOR_STOP],[ ])
 
 define([REF_STOPS],)
-define([FILL_SHAPE],)
-define([STROKE_SHAPE],)
+define([FILL_SHAPE],[[
+    paint_t *$1_fill;
+]])
+define([STROKE_SHAPE],[[
+    paint_t *$1_stroke;
+]])
 define([FILL_SHAPE_WITH_PAINT],)
 define([STROKE_SHAPE_WITH_PAINT],)
 
@@ -32,6 +36,7 @@
 [typedef struct $1 $1_t;]
 
 struct [$1] {
+    coord_t *root_coord;
 $2[]dnl
 };