aboutsummaryrefslogtreecommitdiff
path: root/src/projects.h
diff options
context:
space:
mode:
authorThomas Knudsen <lastname DOT firstname AT gmail DOT com>2016-04-05 19:05:06 +0200
committerThomas Knudsen <lastname DOT firstname AT gmail DOT com>2016-04-05 19:05:06 +0200
commiteeea65526dfd0301a7759a978a5b8fcbcf5baecd (patch)
treeba40619c81936a8aec52b90bd2043617e9b17700 /src/projects.h
parentafebe65cb503e40f9a89b5f931a1f94fb545e067 (diff)
downloadPROJ-eeea65526dfd0301a7759a978a5b8fcbcf5baecd.tar.gz
PROJ-eeea65526dfd0301a7759a978a5b8fcbcf5baecd.zip
Some initial work on internal regression tests
Need these to reduce the chance I'm screwing up something during this rather intrusive code surgery
Diffstat (limited to 'src/projects.h')
-rw-r--r--src/projects.h22
1 files changed, 20 insertions, 2 deletions
diff --git a/src/projects.h b/src/projects.h
index 3106eb76..2b638e94 100644
--- a/src/projects.h
+++ b/src/projects.h
@@ -229,7 +229,7 @@ typedef struct ARG_list {
#ifdef PJ_LIB__
/* we need this forward declaration in order to be able to add a
pointer to struct opaque to the typedef struct PJconsts below */
- struct opaque;
+ struct pj_opaque;
#endif
typedef struct PJconsts {
@@ -290,7 +290,7 @@ typedef struct PJconsts {
double last_after_date;
#ifdef PJ_LIB__
- struct opaque *opaq;
+ struct pj_opaque *opaque;
#endif
#ifdef PROJ_PARMS__
@@ -381,6 +381,24 @@ PJ *pj_projection_specific_setup_##name (PJ *P)
#endif
+int pj_generic_selftest (
+ char *e_args,
+ char *s_args,
+ double tolerance_xy,
+ double tolerance_lp,
+ int n_fwd,
+ int n_inv,
+ LP *fwd_in,
+ XY *e_fwd_expect,
+ XY *s_fwd_expect,
+ XY *inv_in,
+ LP *e_inv_expect,
+ LP *s_inv_expect
+);
+
+
+
+
#define MAX_TAB_ID 80
typedef struct { float lam, phi; } FLP;
typedef struct { int lam, phi; } ILP;