aboutsummaryrefslogtreecommitdiff
path: root/src/PJ_horner.c
diff options
context:
space:
mode:
authorThomas Knudsen <busstoptaktik@users.noreply.github.com>2017-10-27 22:50:40 +0200
committerGitHub <noreply@github.com>2017-10-27 22:50:40 +0200
commit5646ff12f32adf78e2bc187e6557ce64e4e04b39 (patch)
tree508d648e1ed084a8d3aa20de7d99ec78bd9fe363 /src/PJ_horner.c
parent9649cc099728162c4c8862b7d5a69d0dfee92c1d (diff)
downloadPROJ-5646ff12f32adf78e2bc187e6557ce64e4e04b39.tar.gz
PROJ-5646ff12f32adf78e2bc187e6557ce64e4e04b39.zip
Linguistics: Clarify this and that, here and there (#632)
* Linguistics: Clarify this and that, here and there * Revert nullification of PJ_cart->fwd, inv
Diffstat (limited to 'src/PJ_horner.c')
-rw-r--r--src/PJ_horner.c32
1 files changed, 15 insertions, 17 deletions
diff --git a/src/PJ_horner.c b/src/PJ_horner.c
index d6d2c51c..a9a2c922 100644
--- a/src/PJ_horner.c
+++ b/src/PJ_horner.c
@@ -1,19 +1,3 @@
-#define PJ_LIB__
-#include "proj_internal.h"
-#include "projects.h"
-#include <assert.h>
-#include <stddef.h>
-#include <math.h>
-#include <errno.h>
-
-PROJ_HEAD(horner, "Horner polynomial evaluation");
-
-/* make horner.h interface with proj's memory management */
-#define horner_dealloc(x) pj_dealloc(x)
-#define horner_calloc(n,x) pj_calloc(n,x)
-
-/* The next few hundred lines is mostly cut-and-paste from the horner.h header library */
-
/***********************************************************************
Interfacing to a classic piece of geodetic software
@@ -91,6 +75,20 @@ PROJ_HEAD(horner, "Horner polynomial evaluation");
*
*****************************************************************************/
+#define PJ_LIB__
+#include "proj_internal.h"
+#include "projects.h"
+#include <assert.h>
+#include <stddef.h>
+#include <math.h>
+#include <errno.h>
+
+PROJ_HEAD(horner, "Horner polynomial evaluation");
+
+/* make horner.h interface with proj's memory management */
+#define horner_dealloc(x) pj_dealloc(x)
+#define horner_calloc(n,x) pj_calloc(n,x)
+
struct horner;
typedef struct horner HORNER;
@@ -399,7 +397,7 @@ static int parse_coefs (PJ *P, double *coefs, char *param, int ncoefs) {
buf = pj_calloc (strlen (param) + 2, sizeof(char));
if (0==buf) {
- proj_log_error (P, "Horner: Out of core");
+ proj_log_error (P, "Horner: No memory left");
return 0;
}