a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/lib/gfxPoly.c src/lib/gfxPoly.c index 14d48ee..48d5419 100644 --- src/lib/gfxPoly.c +++ src/lib/gfxPoly.c @@ -1,50 +1,49 @@ /* gfxPoly - two dimensional polygon. */ #include "common.h" #include "gfxPoly.h" -static char const rcsid[] = "$Id: gfxPoly.c,v 1.3 2008/09/17 17:56:37 kent Exp $"; struct gfxPoly *gfxPolyNew() /* Create new (empty) polygon */ { struct gfxPoly *poly; AllocVar(poly); return poly; } void gfxPolyFree(struct gfxPoly **pPoly) /* Free up resources associated with polygon */ { struct gfxPoly *poly = *pPoly; if (poly != NULL) { if (poly->lastPoint != NULL) { poly->lastPoint->next = NULL; slFreeList(&poly->ptList); } freez(pPoly); } } void gfxPolyAddPoint(struct gfxPoly *poly, int x, int y) /* Add point to polygon. */ { struct gfxPoint *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; } }