From 69db44491daeac20795628f2f5aa66166831409e Mon Sep 17 00:00:00 2001 From: Dave Slattengren Date: Sat, 9 Jul 1983 22:59:35 -0800 Subject: [PATCH] just some tuning... register declarations, and stuff SCCS-vsn: local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/hpoint.c 1.4 --- .../gremlin.aed/gprint/hpoint.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/hpoint.c b/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/hpoint.c index 05f13a450c..ec674c0072 100644 --- a/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/hpoint.c +++ b/usr/src/local/ditroff/ditroff.old.okeeffe/gremlin.aed/gprint/hpoint.c @@ -1,4 +1,4 @@ -/* hpoint.c 1.3 83/03/30 +/* hpoint.c 1.4 83/07/09 * * Copyright -C- 1982 Barry S. Roitblat * @@ -19,7 +19,7 @@ POINT *PTInit() */ { - POINT *pt; + register POINT *pt; pt = (POINT *) malloc(sizeof(POINT)); pt->x = nullpt; @@ -28,7 +28,8 @@ POINT *PTInit() } /* end PTInit */ POINT *PTMakePoint(x, y, pointlist) -float x, y; +float x; +float y; POINT *(*pointlist); /* * This routine creates a new point with coordinates x and y and @@ -36,13 +37,12 @@ POINT *(*pointlist); */ { - POINT *pt1; + register POINT *pt1; pt1 = *pointlist; - while ( !Nullpoint(pt1) ) - { + while ( !Nullpoint(pt1) ) { pt1 = pt1->nextpt; - } /* end while */; + } pt1->x = x; pt1->y = y; pt1->nextpt = PTInit(); -- 2.20.1