Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore adding long-format GMT options #230

Merged
merged 94 commits into from
Dec 21, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
a0d6f1c
WIP Explore adding long-format GMT options
PaulWessel Dec 21, 2018
4f06191
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 21, 2018
10dcf50
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 22, 2018
2e6cd71
More common option long-format words
PaulWessel Dec 23, 2018
3e1a5e6
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 23, 2018
64905f0
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 23, 2018
97907f7
Update mgd77track.c
PaulWessel Dec 23, 2018
958968e
Add separator variable to GMT_KW_DICT
PaulWessel Dec 23, 2018
225359c
Let -T option be a modifer under -C
PaulWessel Dec 23, 2018
ce41093
Remove the ifdef USE_GMT_KWD
PaulWessel Dec 23, 2018
b795ed8
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 23, 2018
cdd0229
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 28, 2018
fdcf1ed
Implement parsing of sections
PaulWessel Dec 29, 2018
404438b
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 29, 2018
60e44e2
Documentation
PaulWessel Dec 29, 2018
af27567
Merge branch 'pstextsimplify' into longoptionsparsing
PaulWessel Dec 29, 2018
1f76192
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 29, 2018
b3bbc3f
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 30, 2018
9868ffe
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 1, 2019
f939ffe
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 1, 2019
1680ae7
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 2, 2019
193ad85
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 4, 2019
e0efe84
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 5, 2019
a99eb23
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 6, 2019
a07d34e
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 6, 2019
3636fb4
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 6, 2019
b2c71d4
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 8, 2019
d73c3ef
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 12, 2019
169d384
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 16, 2019
2d48a32
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 17, 2019
9d89c2c
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 21, 2019
3044e26
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 22, 2019
61e8dde
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 24, 2019
4465e53
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 24, 2019
359bae7
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 26, 2019
8c0069e
Merge branch 'master' into longoptionsparsing
PaulWessel Jan 26, 2019
4a8449c
Merge branch 'master' into longoptionsparsing
leouieda Mar 2, 2019
f84188c
Merge branch 'master' into longoptionsparsing
PaulWessel Mar 9, 2019
1b5a35f
Merge branch 'master' into longoptionsparsing
PaulWessel Mar 9, 2019
28394a1
Merge branch 'master' into longoptionsparsing
PaulWessel Mar 27, 2019
0a85e33
Merge branch 'master' into longoptionsparsing
PaulWessel Apr 6, 2019
4f02938
Merge branch 'master' into longoptionsparsing
PaulWessel Apr 14, 2019
aba2206
Merge branch 'master' into longoptionsparsing
PaulWessel Apr 29, 2019
f711500
Merge branch 'master' into longoptionsparsing
PaulWessel May 12, 2019
c23adb3
Merge branch 'master' into longoptionsparsing
PaulWessel May 12, 2019
4ab1b1f
Merge branch 'master' into longoptionsparsing
PaulWessel May 13, 2019
2c299f0
Merge branch 'master' into longoptionsparsing
PaulWessel May 16, 2019
eb866da
Fix a few issues
PaulWessel May 16, 2019
3c4a82a
Merge branch 'master' into longoptionsparsing
PaulWessel May 16, 2019
e336c6b
Merge branch 'master' into longoptionsparsing
PaulWessel May 19, 2019
ef5af6a
Merge branch 'master' into longoptionsparsing
PaulWessel May 25, 2019
1dff0fd
Merge branch 'master' into longoptionsparsing
PaulWessel May 26, 2019
eeddf1d
Merge branch 'master' into longoptionsparsing
PaulWessel May 29, 2019
d664c60
Merge branch 'master' into longoptionsparsing
PaulWessel Jun 7, 2019
52a026a
Merge branch 'master' into longoptionsparsing
PaulWessel Jun 8, 2019
d242cf1
Merge branch 'master' into longoptionsparsing
PaulWessel Jun 10, 2019
5ea7172
Merge branch 'master' into longoptionsparsing
PaulWessel Jun 13, 2019
42fc5f2
Merge branch 'master' into longoptionsparsing
PaulWessel Jun 15, 2019
70121fb
Merge branch 'master' into longoptionsparsing
PaulWessel Jul 1, 2019
0d371f6
Merge branch 'longoptionsparsing' of https://github.com/GenericMappin…
PaulWessel Jul 1, 2019
9d22bbd
Merge branch '6.0' into longoptionsparsing
PaulWessel Jul 1, 2019
4e4ae65
Merge branch 'master' into longoptionsparsing
PaulWessel Jul 4, 2019
3cf971f
Merge branch '6.0' into longoptionsparsing
PaulWessel Jul 6, 2019
22dfa7e
Merge branch 'master' into longoptionsparsing
PaulWessel Jul 14, 2019
11740a1
Seppl out structure name
PaulWessel Jul 29, 2019
e475664
Merge branch 'master' into longoptionsparsing
PaulWessel Aug 8, 2019
25e841f
Merge branch 'longoptionsparsing' of https://github.com/GenericMappin…
PaulWessel Aug 8, 2019
7d06285
Merge branch '6.0' into longoptionsparsing
PaulWessel Sep 3, 2019
b952226
Merge branch '6.0' into longoptionsparsing
PaulWessel Sep 4, 2019
f7f263c
Merge branch 'master' into longoptionsparsing
PaulWessel Sep 9, 2019
e80aff4
rename a few keywords
PaulWessel Dec 13, 2019
7dfc286
Add grdinterpolate to the mix and fix some errors
PaulWessel Dec 14, 2019
4344a01
Let keyword dictionary be ifdef under USE_LONG_OPTIONS
PaulWessel Dec 14, 2019
564f29d
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 14, 2019
1e63473
Minor text improvements
PaulWessel Dec 15, 2019
7cc0b20
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 15, 2019
0d48d5e
Fix the use of USE_LONG_OPTIONS
PaulWessel Dec 15, 2019
05e5c37
Update ConfigUserTemplate.cmake
PaulWessel Dec 15, 2019
7726b38
Add --frame
PaulWessel Dec 15, 2019
498abc7
Rename kw arrays to make it clearer that one is module-specific
PaulWessel Dec 15, 2019
4f66c03
Update src/blockmean.c
PaulWessel Dec 17, 2019
13244f5
Fix issues in block_subs.c
PaulWessel Dec 17, 2019
dffcbf0
Update src/gmt_init.c
PaulWessel Dec 17, 2019
32cdb1e
Update src/gmt_init.c
PaulWessel Dec 17, 2019
8a2ba44
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 18, 2019
eaa3b61
Adding axes as keyword
PaulWessel Dec 19, 2019
d96e725
Escape +? strings that should not be seen as modifiers
PaulWessel Dec 19, 2019
3c8e67f
Move --increment to block_subs.c, update commons, use --axis
PaulWessel Dec 19, 2019
73af06c
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 19, 2019
ea731fd
Enable CI testing for long options (#2305)
seisman Dec 20, 2019
7b15d16
Add a long-format option test to test/modern
PaulWessel Dec 20, 2019
e25bf8e
Improve coments only
PaulWessel Dec 20, 2019
90821af
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 20, 2019
8143ea1
Merge branch 'master' into longoptionsparsing
PaulWessel Dec 21, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ci/config-gmt-unix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ set (DO_API_TESTS ON)
set (N_TEST_JOBS 2)
set (SUPPORT_EXEC_IN_BINARY_DIR TRUE)
set (CMAKE_C_FLAGS "-coverage -O0 ${CMAKE_C_FLAGS}")

# Turn on testing of upcoming long-option syntax for common GMT options
add_definitions(-DUSE_COMMON_LONG_OPTIONS)
# Turn on testing of upcoming long-option syntax for module options
add_definitions(-DUSE_MODULE_LONG_OPTIONS)
EOF
fi

Expand Down
5 changes: 5 additions & 0 deletions ci/config-gmt-windows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ set (DO_EXAMPLES TRUE)
set (DO_TESTS TRUE)
set (DO_API_TESTS ON)
set (SUPPORT_EXEC_IN_BINARY_DIR TRUE)

# Turn on testing of upcoming long-option syntax for common GMT options
add_definitions(-DUSE_COMMON_LONG_OPTIONS)
# Turn on testing of upcoming long-option syntax for module options
add_definitions(-DUSE_MODULE_LONG_OPTIONS)
EOF
fi

Expand Down
2 changes: 2 additions & 0 deletions cmake/ConfigUserTemplate.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,8 @@
# Uncomment these two statements if you are a developer debugging GMT:
#add_definitions(-DDEBUG)
#add_definitions(-DMEMDEBUG) # Turn on memory tracking see gmt_support.c for extra info
#add_definitions(-DUSE_COMMON_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for common GMT options
#add_definitions(-DUSE_MODULE_LONG_OPTIONS) # Turn on testing of upcoming long-option syntax for module options
#set (CMAKE_C_FLAGS "-Wall -Wdeclaration-after-statement") # recommended even for release build
#set (CMAKE_C_FLAGS "-Wextra ${CMAKE_C_FLAGS}") # extra warnings
#set (CMAKE_C_FLAGS_DEBUG -ggdb3) # gdb debugging symbols
Expand Down
2 changes: 1 addition & 1 deletion src/begin.c
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int GMT_begin (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) return (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) return (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
if ((error = parse (GMT, options)) != 0) Return (error);

Expand Down
27 changes: 27 additions & 0 deletions src/block_subs.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,33 @@ struct BLOCK_CTRL {
} W;
};

GMT_LOCAL struct GMT_KEYWORD_DICTIONARY module_kw[] = { /* Local options for all the block* modules */
/* separator, short-option, long-option, short-directives, long-directives, short-modifiers, long-modifiers */
{ 0, 'A', "fields", "", "", "", "" },
{ 0, 'C', "center", "", "", "", "" },
#if defined(BLOCKMODE) /* Only blockmode has a -D option */
{ 0, 'D', "bin-width", "", "", "a,c,h,l", "average,center,high,low" },
#endif
#if defined(BLOCKMEAN)
{ 0, 'E', "extend", "", "", "P,p", "prop-simple,prop-weighted" },
#elif defined(BLOCKMODE)
{ 0, 'E', "extend", "r,s", "record,source", "l,h", "lower,higher" },
#else
{ 0, 'E', "extend", "b,r,s", "box-whisker,record,source", "l,h", "lower,higher" },
#endif
{ 0, 'G', "gridfile", "", "", "", "" },
{ '/', 'I', "increment", "", "", "e,n", "exact,number" },
#if !defined(BLOCKMEAN) /* Only blockmedian & blockmode have a -Q option */
{ 0, 'Q', "quicker", "", "", "", "" },
#endif
{ 0, 'S', "select", "m,n,s,w", "mean,count,sum,weight", "", "" },
#if defined(BLOCKMEDIAN) /* Only blockmedian has a -T option */
{ 0, 'T', "quantile", "", "", "", "" },
#endif
{ 0, 'W', "weights", "i,o", "in,out", "s", "sigma" },
{ 0, '\0', "", "", "", "", ""} /* End of list marked with empty option and strings */
};

#if 0
enum GMT_grdval_blks { /* mode for selected item for gridding */
BLK_ITEM_MEAN = 0,
Expand Down
6 changes: 3 additions & 3 deletions src/blockmean.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include "block_subs.h"

enum Block_Modes {
BLK_MODE_NOTSET = 0, /* No -E+p|P (or -Ep) set */
BLK_MODE_OBSOLETE = 1, /* Old -Ep for backwards compatibility; assumes input weights are already set to 1/s^ */
BLK_MODE_NOTSET = 0, /* No -E+p|P (or -Ep) set */
BLK_MODE_OBSOLETE = 1, /* Old -Ep for backwards compatibility; assumes input weights are already set to 1/s^2 */
BLK_MODE_WEIGHTED = 2, /* -E+p computes weighted z means and error propagation on weighted z mean, using input s and w = 1/s^2 */
BLK_MODE_SIMPLE = 3 /* -E+P computes simple z means and error propagation on simple z mean, using input s and w = 1/s^2 */
};
Expand Down Expand Up @@ -307,7 +307,7 @@ int GMT_blockmean (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, module_kw, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/blockmedian.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ int GMT_blockmedian (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, module_kw, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/blockmode.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ int GMT_blockmode (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, module_kw, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/clear.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ int GMT_clear (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
if ((error = parse (GMT, options)) != 0) Return (error);

Expand Down
2 changes: 1 addition & 1 deletion src/dimfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,7 @@ int GMT_dimfilter (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/docs.c
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ int GMT_docs (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */

/*---------------------------- This is the docs main code ----------------------------*/

Expand Down
2 changes: 1 addition & 1 deletion src/end.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int GMT_end (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
if ((error = parse (GMT, options, &show)) != 0) Return (error);

Expand Down
2 changes: 1 addition & 1 deletion src/figure.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int GMT_figure (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
if ((error = parse (GMT, options)) != 0) Return (error);

Expand Down
2 changes: 1 addition & 1 deletion src/filter1d.c
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ int GMT_filter1d (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error, "Error parsing filter1d options\n");
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error, "Error parsing filter1d options\n");
Expand Down
2 changes: 1 addition & 1 deletion src/fitcircle.c
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ int GMT_fitcircle (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/geodesy/earthtide.c
Original file line number Diff line number Diff line change
Expand Up @@ -1448,7 +1448,7 @@ int GMT_earthtide (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/geodesy/gpsgridder.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ int GMT_gpsgridder (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/geodesy/psvelo.c
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ int GMT_psvelo (void *V_API, int mode, void *args) {

/* Parse the command-line arguments; return if errors are encountered */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
2 changes: 1 addition & 1 deletion src/gmt2kml.c
Original file line number Diff line number Diff line change
Expand Up @@ -859,7 +859,7 @@ int GMT_gmt2kml (void *V_API, int mode, void *args) {

/* Parse the command-line arguments */

if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if ((GMT = gmt_init_module (API, THIS_MODULE_LIB, THIS_MODULE_CLASSIC_NAME, THIS_MODULE_KEYS, THIS_MODULE_NEEDS, NULL, &options, &GMT_cpy)) == NULL) bailout (API->error); /* Save current state */
if (GMT_Parse_Common (API, THIS_MODULE_OPTIONS, options)) Return (API->error);
Ctrl = New_Ctrl (GMT); /* Allocate and initialize a new control structure */
if ((error = parse (GMT, Ctrl, options)) != 0) Return (error);
Expand Down
1 change: 1 addition & 0 deletions src/gmt_constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
#define GMT_CONV6_LIMIT 1.0e-6 /* 1 ppm */
#define GMT_CONV4_LIMIT 1.0e-4 /* Less tight convergence limit or "close to zero" limit */

#define GMT_ASCII_ES 27 /* ASCII code for escape (used to prevent +? strings in plain text from being seen as modifiers) */
#define GMT_ASCII_GS 29 /* ASCII code for group separator (temporarily replacing tabs) */
#define GMT_ASCII_RS 30 /* ASCII code for record separator (temporarily replacing spaces in filenames) */
#define GMT_ASCII_US 31 /* ASCII code for unit separator (temporarily replacing spaces in quoted text) */
Expand Down
Loading