From f58ba586ebf11700317513f7bb5be84590d37a42 Mon Sep 17 00:00:00 2001 From: Thomas Knudsen Date: Wed, 11 May 2016 08:58:28 +0200 Subject: Portability cleanups for the code in PR #6 (and a few additional source files) Eliminated mixed code and declarations, converted C++ style comments and probably did a few more things highlighted by running gcc with the "-W -Wall -Wextra -pedantic" flags --- src/pj_inv3d.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/pj_inv3d.c') diff --git a/src/pj_inv3d.c b/src/pj_inv3d.c index de35e776..d06ed080 100644 --- a/src/pj_inv3d.c +++ b/src/pj_inv3d.c @@ -19,9 +19,9 @@ pj_inv3d(XYZ xyz, PJ *P) { xyz.x = (xyz.x * P->to_meter - P->x0) * P->ra; /* descale and de-offset */ xyz.y = (xyz.y * P->to_meter - P->y0) * P->ra; - //z is not scaled since that is handled by vto_meter before we get here - - //Check for NULL pointer + /* z is not scaled since that is handled by vto_meter before we get here */ + + /* Check for NULL pointer */ if (P->inv3d != NULL) { lpz = (*P->inv3d)(xyz, P); /* inverse project */ @@ -32,7 +32,7 @@ pj_inv3d(XYZ xyz, PJ *P) { if (!P->over) lpz.lam = adjlon(lpz.lam); /* adjust longitude to CM */ - //This maybe redundant and never user + /* This may be redundant and never used */ if (P->geoc && fabs(fabs(lpz.phi)-HALFPI) > EPS) lpz.phi = atan(P->one_es * tan(lpz.phi)); } -- cgit v1.2.3