From 56c75c40fa3801c4a20c8b1cb6abcc5094e273e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Van=20Canneyt?= Date: Fri, 13 Jan 2023 23:16:08 +0100 Subject: [PATCH] * PChar -> PAnsiChar --- packages/proj4/src/proj.pas | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/proj4/src/proj.pas b/packages/proj4/src/proj.pas index 3bc9ae3b59..7a36bedfd6 100644 --- a/packages/proj4/src/proj.pas +++ b/packages/proj4/src/proj.pas @@ -367,7 +367,7 @@ const const PJ_VERSION = 461; -//extern char const pj_release[]; /* global release id string */ +//extern AnsiChar const pj_release[]; /* global release id string */ const RAD_TO_DEG = 57.29577951308232; @@ -394,10 +394,10 @@ function pj_datum_transform(src, dst: projPJ; point_count: clong; point_offset: function pj_geocentric_to_geodetic(a, es: cdouble; point_count: clong; point_offset: cint; x,y,z: pcdouble): cint; cdecl; external; function pj_geodetic_to_geocentric(a, es: cdouble; point_count: clong; point_offset: cint; x,y,z: pcdouble): cint; cdecl; external; function pj_compare_datums(srcdefn: projPJ; dstdefn: projPJ): cint; cdecl; external; -function pj_apply_gridshift(c: pchar; i: cint; point_count: clong; point_offset: cint; x,y,z: pcdouble): cint; cdecl; external; +function pj_apply_gridshift(c: PAnsiChar; i: cint; point_count: clong; point_offset: cint; x,y,z: pcdouble): cint; cdecl; external; type - projFinder = function(s: pchar): pchar; cdecl; + projFinder = function(s: PAnsiChar): PAnsiChar; cdecl; procedure pj_deallocate_grids; cdecl; external; function pj_is_latlong(proj: projPJ): cint; cdecl; external; @@ -405,16 +405,16 @@ function pj_is_geocent(proj: projPJ): cint; cdecl; external; procedure pj_pr_list(proj: projPJ); cdecl; external; procedure pj_free(proj: projPJ); cdecl; external; procedure pj_set_finder(finder: projFinder); cdecl; external; -procedure pj_set_searchpath(count: cint; path: ppchar); cdecl; external; -function pj_init(argc: cint; argv: ppchar): projPJ; cdecl; external; -function pj_init_plus(args: pchar): projPJ; cdecl; external; -function pj_get_def(proj: projPJ; i: cint): pchar; cdecl; external; +procedure pj_set_searchpath(count: cint; path: PPAnsiChar); cdecl; external; +function pj_init(argc: cint; argv: PPAnsiChar): projPJ; cdecl; external; +function pj_init_plus(args: PAnsiChar): projPJ; cdecl; external; +function pj_get_def(proj: projPJ; i: cint): PAnsiChar; cdecl; external; function pj_latlong_from_proj(proj: projPJ): projPJ; cdecl; external; function pj_malloc(size: csize_t): pointer; cdecl; external; procedure pj_dalloc(ptr: pointer); cdecl; external; -function pj_strerrno(err: cint): pchar; cdecl; external; +function pj_strerrno(err: cint): PAnsiChar; cdecl; external; function pj_get_errno_ref: pcint; cdecl; external; -function pj_get_release: pchar; cdecl; external; +function pj_get_release: PAnsiChar; cdecl; external;