diff tools/mb_c_header.m4 @ 210:3fadd2f2742e

M4 macros to generate code for dynamic loading. - Introduce sprite. - Add mb_sprite_t and mb_sprite_lsym_t - mb_sprite_lsym_t is sprite with symbol that searched with linear search. - Add mb_sprite_lsym_t as first member variable of sprite. - Add symbol table to generated C code.
author Thinker K.F. Li <thinker@branda.to>
date Fri, 12 Dec 2008 00:33:54 +0800
parents 6ce68c1f7405
children 104d83378582
line wrap: on
line diff
--- a/tools/mb_c_header.m4	Wed Dec 10 17:15:26 2008 +0800
+++ b/tools/mb_c_header.m4	Fri Dec 12 00:33:54 2008 +0800
@@ -40,6 +40,7 @@
 define([COORD_MATRIX],)
 define([SHAPE_TRANSLATE],)
 define([SHAPE_MATRIX],)
+define([ADD_SYMBOL],)
 
 define([MADBUTTERFLY],[dnl
 [#ifndef __$1_H_
@@ -48,6 +49,7 @@
 typedef struct $1 $1_t;
 
 struct $1 {
+    mb_sprite_lsym_t lsym;
     redraw_man_t *rdman;
     coord_t *root_coord;]
 $2[]dnl