* class extensions for shapeObj **********************************************************************/
| 977 | * class extensions for shapeObj |
| 978 | **********************************************************************/ |
| 979 | shapeObj *shapeObj_new(int type) { |
| 980 | shapeObj *shape; |
| 981 | |
| 982 | shape = (shapeObj *)malloc(sizeof(shapeObj)); |
| 983 | if(!shape) |
| 984 | return NULL; |
| 985 | |
| 986 | msInitShape(shape); |
| 987 | shape->type = type; |
| 988 | return shape; |
| 989 | } |
| 990 | |
| 991 | void shapeObj_destroy(shapeObj *self) { |
| 992 | msFreeShape(self); |
no test coverage detected