Mercurial > MadButterfly
comparison tools/mb_c_source.m4 @ 113:cf8ccf06e397
Create a new coord_t as root_coord in <svg>_new()
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sun, 14 Sep 2008 01:04:40 +0800 |
parents | 565b55508c8d |
children | 3a4d6179e6a9 |
comparison
equal
deleted
inserted
replaced
112:abb5511c23f7 | 113:cf8ccf06e397 |
---|---|
273 $2[]dnl | 273 $2[]dnl |
274 [ | 274 [ |
275 obj = ($1_t *)malloc(sizeof($1_t)); | 275 obj = ($1_t *)malloc(sizeof($1_t)); |
276 if(obj == NULL) return NULL; | 276 if(obj == NULL) return NULL; |
277 ]SETUP_VARS | 277 ]SETUP_VARS |
278 obj->root_coord = rdman->root_coord; | 278 obj->root_coord = rdman_coord_new(rdman, rdman->root_coord); |
279 $2 | 279 $2 |
280 [ return obj; | 280 [ return obj; |
281 } | 281 } |
282 | 282 |
283 void $1_free($1_t *obj) { | 283 void $1_free($1_t *obj) { |