aboutsummaryrefslogtreecommitdiff
path: root/src/pj_inv.c
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2018-03-11 15:28:28 +0100
committerKristian Evers <kristianevers@gmail.com>2018-03-11 15:28:28 +0100
commit18d5c0310e5950b88b4a5ddab6c3636e8b10ed77 (patch)
treebfb3582096fabb1bc40929b02990c7f7f450ad20 /src/pj_inv.c
parentab87b8ef0af7ef888b7d810db610ead6eb784d71 (diff)
downloadPROJ-18d5c0310e5950b88b4a5ddab6c3636e8b10ed77.tar.gz
PROJ-18d5c0310e5950b88b4a5ddab6c3636e8b10ed77.zip
Remove 'pj_' prefix from static functions
Functions should only be prefixed with 'pj_' when they can be used in other parts of the code base and not just within a single file. Takes care of the last step in #675.
Diffstat (limited to 'src/pj_inv.c')
-rw-r--r--src/pj_inv.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/pj_inv.c b/src/pj_inv.c
index 9918c59d..1e84ff30 100644
--- a/src/pj_inv.c
+++ b/src/pj_inv.c
@@ -35,7 +35,7 @@
#define INPUT_UNITS P->right
#define OUTPUT_UNITS P->left
-static PJ_COORD pj_inv_prepare (PJ *P, PJ_COORD coo) {
+static PJ_COORD inv_prepare (PJ *P, PJ_COORD coo) {
if (coo.xyz.x == HUGE_VAL) {
proj_errno_set (P, PJD_ERR_INVALID_X_OR_Y);
return proj_coord_error ();
@@ -132,7 +132,7 @@ static PJ_COORD pj_inv_prepare (PJ *P, PJ_COORD coo) {
-static PJ_COORD pj_inv_finalize (PJ *P, PJ_COORD coo) {
+static PJ_COORD inv_finalize (PJ *P, PJ_COORD coo) {
if (coo.xyz.x == HUGE_VAL) {
proj_errno_set (P, PJD_ERR_INVALID_X_OR_Y);
return proj_coord_error ();
@@ -178,7 +178,7 @@ LP pj_inv(XY xy, PJ *P) {
coo.xy = xy;
if (!P->skip_inv_prepare)
- coo = pj_inv_prepare (P, coo);
+ coo = inv_prepare (P, coo);
if (HUGE_VAL==coo.v[0])
return proj_coord_error ().lp;
@@ -197,7 +197,7 @@ LP pj_inv(XY xy, PJ *P) {
return proj_coord_error ().lp;
if (!P->skip_inv_finalize)
- coo = pj_inv_finalize (P, coo);
+ coo = inv_finalize (P, coo);
return coo.lp;
}
@@ -208,7 +208,7 @@ LPZ pj_inv3d (XYZ xyz, PJ *P) {
coo.xyz = xyz;
if (!P->skip_inv_prepare)
- coo = pj_inv_prepare (P, coo);
+ coo = inv_prepare (P, coo);
if (HUGE_VAL==coo.v[0])
return proj_coord_error ().lpz;
@@ -227,7 +227,7 @@ LPZ pj_inv3d (XYZ xyz, PJ *P) {
return proj_coord_error ().lpz;
if (!P->skip_inv_finalize)
- coo = pj_inv_finalize (P, coo);
+ coo = inv_finalize (P, coo);
return coo.lpz;
}
@@ -235,7 +235,7 @@ LPZ pj_inv3d (XYZ xyz, PJ *P) {
PJ_COORD pj_inv4d (PJ_COORD coo, PJ *P) {
if (!P->skip_inv_prepare)
- coo = pj_inv_prepare (P, coo);
+ coo = inv_prepare (P, coo);
if (HUGE_VAL==coo.v[0])
return proj_coord_error ();
@@ -254,6 +254,6 @@ PJ_COORD pj_inv4d (PJ_COORD coo, PJ *P) {
return proj_coord_error ();
if (!P->skip_inv_finalize)
- coo = pj_inv_finalize (P, coo);
+ coo = inv_finalize (P, coo);
return coo;
}