Mercurial > MadButterfly
comparison src/shape_path.c @ 196:c234ee745ceb
Start moving to mb_obj_t
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Tue, 09 Dec 2008 17:34:10 +0800 |
parents | 530bb7728546 |
children | 75ec0124202a |
comparison
equal
deleted
inserted
replaced
195:5235aded379c | 196:c234ee745ceb |
---|---|
680 | 680 |
681 /*! \todo Use elmpool to manage sh_path_t objects. */ | 681 /*! \todo Use elmpool to manage sh_path_t objects. */ |
682 path = (sh_path_t *)malloc(sizeof(sh_path_t)); | 682 path = (sh_path_t *)malloc(sizeof(sh_path_t)); |
683 /*! \todo Remove this memset()? */ | 683 /*! \todo Remove this memset()? */ |
684 memset(&path->shape, 0, sizeof(shape_t)); | 684 memset(&path->shape, 0, sizeof(shape_t)); |
685 path->shape.sh_type = SHT_PATH; | 685 MBO_TYPE(path) = MBO_PATH; |
686 path->cmd_len = cmd_cnt; | 686 path->cmd_len = cmd_cnt; |
687 path->arg_len = arg_cnt; | 687 path->arg_len = arg_cnt; |
688 path->fix_arg_len = fix_arg_cnt; | 688 path->fix_arg_len = fix_arg_cnt; |
689 | 689 |
690 msz = cmd_cnt + sizeof(co_aix) * arg_cnt + sizeof(int) * fix_arg_cnt; | 690 msz = cmd_cnt + sizeof(co_aix) * arg_cnt + sizeof(int) * fix_arg_cnt; |