Mercurial > MadButterfly
comparison dox/first_program.h @ 110:c14cb6d12030
-
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 12 Sep 2008 15:31:10 +0800 |
parents | 703ab76aa8a5 |
children | e4e47d2cdbcd |
comparison
equal
deleted
inserted
replaced
109:703ab76aa8a5 | 110:c14cb6d12030 |
---|---|
14 * translated a M4 file as foo.mb, using .mb as extension of file name. | 14 * translated a M4 file as foo.mb, using .mb as extension of file name. |
15 * Macro files are translate to *.c and *.h files to link with application | 15 * Macro files are translate to *.c and *.h files to link with application |
16 * programs. | 16 * programs. |
17 * | 17 * |
18 * For example, to translate foo.svg with steps | 18 * For example, to translate foo.svg with steps |
19 * - $(TOOLSDIR)/svg2code.py foo.svg foo.mb | 19 * - $(PREFIX)/bin/svg2code.py foo.svg foo.mb |
20 * - m4 -I $(TOOLSDIR) mb_c_source.m4 foo.mb > foo.c | 20 * - m4 -I $(PREFIX)/share/mb mb_c_source.m4 foo.mb > foo.c |
21 * - m4 -I $(TOOLSDIR) mb_c_header.m4 foo.mb > foo.h | 21 * - m4 -I $(PREFIX)/share/mb mb_c_header.m4 foo.mb > foo.h |
22 * | 22 * |
23 * foo.h declares a structure, named 'foo' and two functions, | 23 * foo.h declares a structure, named 'foo' and two functions, |
24 * foo_new() and foo_free(). An instance of 'foo' holds all objects for | 24 * foo_new() and foo_free(). An instance of 'foo' holds all objects for |
25 * foo.svg. One object, with specified ID as name, for each tag. If you | 25 * foo.svg. One object, with specified ID as name, for each tag. If you |
26 * don't assign one, a random one is picked. foo_new() is invoked to create | 26 * don't assign one, a random one is picked. foo_new() is invoked to create |
27 * and initialize a 'foo' instance. An instance is released by calling | 27 * and initialize a 'foo' instance. An instance is released by calling |
28 * foo_free(). | 28 * foo_free(). |
29 * | 29 * |
30 * examples/svg2code_ex/ is a simple example. | 30 * - \subpage svg2code_ex |
31 */ | 31 */ |