# HG changeset patch # User Thinker K.F. Li # Date 1218565039 -28800 # Node ID 309f1eefbec0c0cfa797cf3492aff03069de27d2 # Parent 35c2b7ba140b71e7d71d4c5ba218a6dfdd756cf6 create new coords from redraw_man diff -r 35c2b7ba140b -r 309f1eefbec0 tools/mb_c_source.m4 --- a/tools/mb_c_source.m4 Wed Aug 13 02:11:55 2008 +0800 +++ b/tools/mb_c_source.m4 Wed Aug 13 02:17:19 2008 +0800 @@ -78,8 +78,7 @@ ]]) define([S_ADD_COORD],[[ - obj->$1 = (coord_t *)malloc(sizeof(coord_t)); - coord_init(obj->$1, obj->$2); + obj->$1 = rdman_coord_new(rdman, obj->$2); ]]) define([S_FILL_SHAPE_WITH_PAINT],[dnl