Mercurial > MadButterfly
diff src/mb_types.h @ 11:128af06c876c
Fix the bug that data of a path end with white spaces would make system down
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Sat, 26 Jul 2008 06:34:15 +0800 |
parents | 7cfecdce94cc |
children | 79e9edf4c00a |
line wrap: on
line diff
--- a/src/mb_types.h Sat Jul 26 05:32:31 2008 +0800 +++ b/src/mb_types.h Sat Jul 26 06:34:15 2008 +0800 @@ -2,6 +2,7 @@ #define __MB_TYPES_H_ typedef float co_aix; +typedef struct _shape shape_t; /*! \brief A coordination system. * @@ -17,14 +18,16 @@ co_aix aggr_matrix[6]; struct _coord *parent; struct _coord *children, *sibling; + shape_t *members; } coord_t; typedef struct _geo geo_t; -typedef struct _shape { +struct _shape { int sh_type; geo_t *geo; -} shape_t; + struct _shape *sibling; +}; enum { SHT_UNKNOW, SHT_PATH, SHT_TEXT };