From eeea65526dfd0301a7759a978a5b8fcbcf5baecd Mon Sep 17 00:00:00 2001 From: Thomas Knudsen Date: Tue, 5 Apr 2016 19:05:06 +0200 Subject: Some initial work on internal regression tests Need these to reduce the chance I'm screwing up something during this rather intrusive code surgery --- src/projects.h | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) (limited to 'src/projects.h') 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; -- cgit v1.2.3