aboutsummaryrefslogtreecommitdiff
path: root/src/aasincos.cpp
diff options
context:
space:
mode:
authorKristian Evers <kristianevers@gmail.com>2020-11-26 20:58:01 +0100
committerGitHub <noreply@github.com>2020-11-26 20:58:01 +0100
commit3cb26a406a7e1a964f5f3b5caf3c624222664fb2 (patch)
tree414dad90bd94170f6e619197b9a47bfca096d322 /src/aasincos.cpp
parentf5b3616bb03f8e52a5e5a23704d645492a662393 (diff)
parentd9205b9245388f23b65917a21ec72d6bec15d035 (diff)
downloadPROJ-3cb26a406a7e1a964f5f3b5caf3c624222664fb2.tar.gz
PROJ-3cb26a406a7e1a964f5f3b5caf3c624222664fb2.zip
Merge pull request #2403 from kbevers/remove-proj_api.h
Remove proj_api.h
Diffstat (limited to 'src/aasincos.cpp')
-rw-r--r--src/aasincos.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/aasincos.cpp b/src/aasincos.cpp
index 398a8cfc..c4314c67 100644
--- a/src/aasincos.cpp
+++ b/src/aasincos.cpp
@@ -9,24 +9,24 @@
#define ATOL 1e-50
double
-aasin(projCtx ctx,double v) {
+aasin(PJ_CONTEXT *ctx,double v) {
double av;
if ((av = fabs(v)) >= 1.) {
if (av > ONE_TOL)
- pj_ctx_set_errno( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE );
+ proj_context_errno_set( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE );
return (v < 0. ? -M_HALFPI : M_HALFPI);
}
return asin(v);
}
double
-aacos(projCtx ctx, double v) {
+aacos(PJ_CONTEXT *ctx, double v) {
double av;
if ((av = fabs(v)) >= 1.) {
if (av > ONE_TOL)
- pj_ctx_set_errno( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE );
+ proj_context_errno_set( ctx, PJD_ERR_ACOS_ASIN_ARG_TOO_LARGE );
return (v < 0. ? M_PI : 0.);
}
return acos(v);