|
@@ -17,10 +17,11 @@
|
|
|
*
|
|
|
****************************************************************/
|
|
|
|
|
|
-#include "point.h"
|
|
|
+#include <math.h>
|
|
|
#include <grass/gis.h>
|
|
|
#include <grass/Vect.h>
|
|
|
#include <grass/glocale.h>
|
|
|
+#include "point.h"
|
|
|
|
|
|
inline void point_subtract(POINT a, POINT b, POINT * res)
|
|
|
{
|
|
@@ -116,11 +117,6 @@ POINT_LIST *point_list_new(POINT p)
|
|
|
|
|
|
pl = G_malloc(sizeof(POINT_LIST));
|
|
|
|
|
|
- if (!pl) {
|
|
|
- G_fatal_error(_("Out of memory"));
|
|
|
- exit(1);
|
|
|
- }
|
|
|
-
|
|
|
pl->next = NULL;
|
|
|
pl->p = p;
|
|
|
return pl;
|