comparison src/shape_path.c @ 86:7d0580f89468

Fix bug of dealing matrix().
author Thinker K.F. Li <thinker@branda.to>
date Fri, 22 Aug 2008 16:14:53 +0800
parents 9ab15ebc9061
children ca94493b75bb
comparison
equal deleted inserted replaced
85:9b4a02bcaeb1 86:7d0580f89468
44 if(path->dev_data) 44 if(path->dev_data)
45 free(path->dev_data); 45 free(path->dev_data);
46 free(path); 46 free(path);
47 } 47 }
48 48
49 /*! \brief Count number of arguments.
50 *
51 * \todo Notify programmers that syntax or value error of path data.
52 */
49 static int sh_path_cmd_arg_cnt(char *data, int *cmd_cntp, int *arg_cntp) { 53 static int sh_path_cmd_arg_cnt(char *data, int *cmd_cntp, int *arg_cntp) {
50 char *p, *old; 54 char *p, *old;
51 int cmd_cnt, arg_cnt; 55 int cmd_cnt, arg_cnt;
52 56
53 cmd_cnt = arg_cnt = 0; 57 cmd_cnt = arg_cnt = 0;