624f4b612627304cc2424be2d1ab7a314ab651a2 kent Tue May 27 10:43:34 2014 -0700 Adding spacing for readability around some copyrights notices that needed it. diff --git src/lib/psPoly.c src/lib/psPoly.c index 5e94e7e..e16f3bb 100644 --- src/lib/psPoly.c +++ src/lib/psPoly.c @@ -1,52 +1,53 @@ /* psPoly - two dimensional polygon. */ /* Copyright (C) 2011 The Regents of the University of California * See README in this or parent directory for licensing information. */ + #include "common.h" #include "psPoly.h" 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; } }