diff options
| author | Thomas Knudsen <busstoptaktik@users.noreply.github.com> | 2017-11-27 04:03:07 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-11-27 04:03:07 +0100 |
| commit | 1f48f4c333bfe135296d3be643ef4981dc401c38 (patch) | |
| tree | fca354d0481f4d00bfa97ab5e2f3f546210dd307 /src/pj_init.c | |
| parent | df306f9800b1d6f7a1984877f090c1bc810da7a0 (diff) | |
| download | PROJ-1f48f4c333bfe135296d3be643ef4981dc401c38.tar.gz PROJ-1f48f4c333bfe135296d3be643ef4981dc401c38.zip | |
gie support for builtin errcodes, and other improvements (#684)
* gie support for builtin errcodes, and other improvements
* allow lower case error constants
Diffstat (limited to 'src/pj_init.c')
| -rw-r--r-- | src/pj_init.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index f8492650..2d588ee4 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -541,13 +541,13 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) { /* set datum parameters */ if (pj_datum_set(ctx, start, PIN)) - return pj_default_destructor (PIN, PJD_ERR_MISSING_ARGS); + return pj_default_destructor (PIN, proj_errno(PIN)); if (PIN->need_ellps) { int ret = pj_ellipsoid (PIN); if (0 != ret) { pj_log (ctx, PJ_LOG_DEBUG_MINOR, "pj_init_ctx: Must specify ellipsoid or sphere"); - return pj_default_destructor (PIN, PJD_ERR_MISSING_ARGS); + return pj_default_destructor (PIN, proj_errno(PIN)); } PIN->a_orig = PIN->a; PIN->es_orig = PIN->es; @@ -725,8 +725,8 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) { /* This is the application callable entry point for destroying */ /* a projection definition. It does work generic to all */ /* projection types, and then calls the projection specific */ -/* free function (P->pfree()) to do local work. In most cases */ -/* P->pfree()==pj_default_destructor. */ +/* free function, P->destructor(), to do local work. */ +/* In most cases P->destructor()==pj_default_destructor. */ /************************************************************************/ void pj_free(PJ *P) { |
