* class extensions for lineObj (eg. a line or group of points), * useful many places **********************************************************************/
| 923 | * useful many places |
| 924 | **********************************************************************/ |
| 925 | lineObj *lineObj_new() { |
| 926 | lineObj *line; |
| 927 | |
| 928 | line = (lineObj *)malloc(sizeof(lineObj)); |
| 929 | if(!line) |
| 930 | return(NULL); |
| 931 | |
| 932 | line->numpoints=0; |
| 933 | line->point=NULL; |
| 934 | |
| 935 | return line; |
| 936 | } |
| 937 | |
| 938 | void lineObj_destroy(lineObj *self) { |
| 939 | free(self->point); |
no outgoing calls
no test coverage detected