From f61b42af99e76bf892274b3c4ddf192e998e5cab Mon Sep 17 00:00:00 2001 From: Xiaohan Chen <26203721+CovMat@users.noreply.github.com> Date: Sun, 27 Jul 2025 17:52:14 +0900 Subject: [PATCH 1/2] Update gmt_defaults.h It is better to be consistent with `gmt/src /gmt_constants.h`: https://github.com/GenericMappingTools/gmt/blob/2be2ac8e2a6e420aaa87f772f69333f4f1c4a284/src/gmt_constants.h#L484-L486 It may cause some problems of typecasting in some systems, while running https://github.com/GenericMappingTools/gmt/blob/2be2ac8e2a6e420aaa87f772f69333f4f1c4a284/src/gmt_init.c#L7066 --- src/gmt_defaults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmt_defaults.h b/src/gmt_defaults.h index 5a016c44356..6085653636a 100644 --- a/src/gmt_defaults.h +++ b/src/gmt_defaults.h @@ -95,7 +95,7 @@ struct GMT_DEFAULTS { size_t url_size_limit; unsigned int refresh_time; /* Only refresh server catalog when the local copy is this old in days) */ unsigned int compatibility; /* Choose between 4 (GMT4) and up to latest version (5 for now) */ - unsigned int auto_download; /* 0 (GMT_NO_DOWNLOAD) or 1 (GMT_YES_DOWNLOAD): For auto-download of known files */ + enum GMT_enum_download { GMT_NO_DOWNLOAD = 0, GMT_YES_DOWNLOAD = 1 } auto_download; /* 0 (GMT_NO_DOWNLOAD) or 1 (GMT_YES_DOWNLOAD): For auto-download of known files */ unsigned int interpolant; /* Choose between 0 (Linear), 1 (Akima), or 2 (Cubic spline) */ unsigned int triangulate; /* 0 for Watson [Default], 1 for Shewchuk (if configured) */ unsigned int verbose; /* Level of verbosity 0-4 [1] */ From 7d969a64751c29bf805c51ecd9475a58202e1cd8 Mon Sep 17 00:00:00 2001 From: Xiaohan Chen <26203721+CovMat@users.noreply.github.com> Date: Sun, 27 Jul 2025 18:00:12 +0900 Subject: [PATCH 2/2] Update gmt_defaults.h --- src/gmt_defaults.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmt_defaults.h b/src/gmt_defaults.h index 6085653636a..30eb9f4e164 100644 --- a/src/gmt_defaults.h +++ b/src/gmt_defaults.h @@ -95,7 +95,7 @@ struct GMT_DEFAULTS { size_t url_size_limit; unsigned int refresh_time; /* Only refresh server catalog when the local copy is this old in days) */ unsigned int compatibility; /* Choose between 4 (GMT4) and up to latest version (5 for now) */ - enum GMT_enum_download { GMT_NO_DOWNLOAD = 0, GMT_YES_DOWNLOAD = 1 } auto_download; /* 0 (GMT_NO_DOWNLOAD) or 1 (GMT_YES_DOWNLOAD): For auto-download of known files */ + enum GMT_enum_download auto_download; /* 0 (GMT_NO_DOWNLOAD) or 1 (GMT_YES_DOWNLOAD): For auto-download of known files */ unsigned int interpolant; /* Choose between 0 (Linear), 1 (Akima), or 2 (Cubic spline) */ unsigned int triangulate; /* 0 for Watson [Default], 1 for Shewchuk (if configured) */ unsigned int verbose; /* Level of verbosity 0-4 [1] */