diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2020-11-14 22:55:31 +0100 |
|---|---|---|
| committer | Kristian Evers <kristianevers@gmail.com> | 2020-11-20 16:40:40 +0100 |
| commit | aa46197d66ce70ece382bf955326c46b13f35864 (patch) | |
| tree | e5d8335af87de784ce93c9e686f5ff323ff27936 /src/tests/multistresstest.cpp | |
| parent | e2dd223c5601b387cd622b88583e857b03e9fade (diff) | |
| download | PROJ-aa46197d66ce70ece382bf955326c46b13f35864.tar.gz PROJ-aa46197d66ce70ece382bf955326c46b13f35864.zip | |
Weed out proj_api.h datatypes and replace them with their proj.h counterparts
Diffstat (limited to 'src/tests/multistresstest.cpp')
| -rw-r--r-- | src/tests/multistresstest.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/tests/multistresstest.cpp b/src/tests/multistresstest.cpp index 51720fbd..674f5ded 100644 --- a/src/tests/multistresstest.cpp +++ b/src/tests/multistresstest.cpp @@ -172,7 +172,7 @@ static TestItem test_list[] = { static volatile int active_thread_count = 0; -static projPJ custom_pj_init_plus_ctx(projCtx ctx, const char* def) +static PJ *custom_pj_init_plus_ctx(PJ_CONTEXT *ctx, const char* def) { return pj_init_plus_ctx(ctx, def); } @@ -191,11 +191,12 @@ static void TestThread() /* -------------------------------------------------------------------- */ /* Initialize coordinate system definitions. */ /* -------------------------------------------------------------------- */ - projPJ *src_pj_list, *dst_pj_list; - projCtx ctx = pj_ctx_alloc(); + PJ **src_pj_list; + PJ **dst_pj_list; + PJ_CONTEXT *ctx = pj_ctx_alloc(); - src_pj_list = (projPJ *) calloc(test_count,sizeof(projPJ)); - dst_pj_list = (projPJ *) calloc(test_count,sizeof(projPJ)); + src_pj_list = (PJ **) calloc(test_count,sizeof(PJ)); + dst_pj_list = (PJ **) calloc(test_count,sizeof(PJ)); if(!reinit_every_iteration) { @@ -345,7 +346,8 @@ static int do_main(void) { TestItem *test = test_list + i; - projPJ src_pj, dst_pj; + PJ *src_pj; + PJ *dst_pj; src_pj = custom_pj_init_plus_ctx( pj_get_default_ctx(), test->src_def ); dst_pj = custom_pj_init_plus_ctx( pj_get_default_ctx(), test->dst_def ); |
