summaryrefslogtreecommitdiff
path: root/contrib/groff/grn/hpoint.cc
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/grn/hpoint.cc')
-rw-r--r--contrib/groff/grn/hpoint.cc49
1 files changed, 0 insertions, 49 deletions
diff --git a/contrib/groff/grn/hpoint.cc b/contrib/groff/grn/hpoint.cc
deleted file mode 100644
index f4e1ca827755b..0000000000000
--- a/contrib/groff/grn/hpoint.cc
+++ /dev/null
@@ -1,49 +0,0 @@
-/* Last non-groff version: hpoint.c 1.1 84/10/08 */
-
-/*
- * This file contains routines for manipulating the point data structures
- * for the gremlin picture editor.
- */
-
-#include <stdlib.h>
-#include "gprint.h"
-
-
-/*
- * Return pointer to empty point list.
- */
-POINT *
-PTInit()
-{
- return ((POINT *) NULL);
-}
-
-
-/*
- * This routine creates a new point with coordinates x and y and links it
- * into the pointlist.
- */
-POINT *
-PTMakePoint(float x,
- float y,
- POINT **pplist)
-{
- register POINT *point;
-
- if (Nullpoint(point = *pplist)) { /* empty list */
- *pplist = (POINT *) malloc(sizeof(POINT));
- point = *pplist;
- } else {
- while (!Nullpoint(point->nextpt))
- point = point->nextpt;
- point->nextpt = (POINT *) malloc(sizeof(POINT));
- point = point->nextpt;
- }
-
- point->x = x;
- point->y = y;
- point->nextpt = PTInit();
- return (point);
-} /* end PTMakePoint */
-
-/* EOF */