a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/lib/psPoly.c src/lib/psPoly.c index 1026397..e9df86e 100644 --- src/lib/psPoly.c +++ src/lib/psPoly.c @@ -1,50 +1,49 @@ /* psPoly - two dimensional polygon. */ #include "common.h" #include "psPoly.h" -static char const rcsid[] = "$Id: psPoly.c,v 1.2 2008/09/17 17:56:38 kent Exp $"; struct psPoly *psPolyNew() /* Create new (empty) polygon */ { struct psPoly *poly; AllocVar(poly); return poly; } void psPolyFree(struct psPoly **pPoly) /* Free up resources associated with polygon */ { struct psPoly *poly = *pPoly; if (poly != NULL) { if (poly->lastPoint != NULL) { poly->lastPoint->next = NULL; slFreeList(&poly->ptList); } freez(pPoly); } } void psPolyAddPoint(struct psPoly *poly, double x, double y) /* Add point to polygon. */ { struct psPoint *pt; poly->ptCount += 1; AllocVar(pt); pt->x = x; pt->y = y; if (poly->ptList == NULL) { poly->ptList = poly->lastPoint = pt; pt->next = pt; } else { poly->lastPoint->next = pt; pt->next = poly->ptList; poly->lastPoint = pt; } }