| 9103 | } |
| 9104 | |
| 9105 | int gmt_default_error (struct GMT_CTRL *GMT, char option) { |
| 9106 | /* gmt_default_error ignores all the common options that have already been processed and returns |
| 9107 | * true if the option is not an already processed common option. |
| 9108 | */ |
| 9109 | |
| 9110 | int error = 0; |
| 9111 | |
| 9112 | switch (option) { |
| 9113 | |
| 9114 | case '-': break; /* Skip indiscriminately */ |
| 9115 | case '=': break; /* Skip indiscriminately */ |
| 9116 | case '>': break; /* Skip indiscriminately since dealt with internally */ |
| 9117 | case 'B': error += (GMT->common.B.active[GMT_PRIMARY] == false && GMT->common.B.active[GMT_SECONDARY] == false); break; |
| 9118 | case 'J': error += GMT->common.J.active == false; break; |
| 9119 | case 'K': error += GMT->common.K.active == false; break; |
| 9120 | case 'O': error += GMT->common.O.active == false; break; |
| 9121 | case 'P': error += GMT->common.P.active == false; break; |
| 9122 | case 'R': error += GMT->common.R.active[RSET] == false; break; |
| 9123 | case 'U': error += GMT->common.U.active == false; break; |
| 9124 | case 'V': error += GMT->common.V.active == false; break; |
| 9125 | case 'X': error += GMT->common.X.active == false; break; |
| 9126 | case 'Y': error += GMT->common.Y.active == false; break; |
| 9127 | case 'a': error += GMT->common.a.active == false; break; |
| 9128 | case 'b': error += ((GMT->common.b.active[GMT_IN] == false && GMT->common.b.nc[GMT_IN] == false) \ |
| 9129 | && (GMT->common.b.active[GMT_OUT] == false && GMT->common.b.nc[GMT_OUT] == false)); break; |
| 9130 | case 'd': error += (GMT->common.d.active[GMT_IN] == false && GMT->common.d.active[GMT_OUT] == false); break; |
| 9131 | case 'e': error += GMT->common.e.active == false; break; |
| 9132 | case 'f': error += (GMT->common.f.active[GMT_IN] == false && GMT->common.f.active[GMT_OUT] == false); break; |
| 9133 | case 'g': error += GMT->common.g.active == false; break; |
| 9134 | case 'H': |
| 9135 | if (gmt_M_compat_check (GMT, 4)) { |
| 9136 | error += GMT->common.h.active == false; |
| 9137 | } |
| 9138 | else |
| 9139 | error++; |
| 9140 | break; |
| 9141 | case 'h': error += GMT->common.h.active == false; break; |
| 9142 | case 'i': error += GMT->common.i.active == false; break; |
| 9143 | case 'j': error += GMT->common.j.active == false; break; |
| 9144 | case 'l': error += GMT->common.l.active == false; break; |
| 9145 | case 'n': error += GMT->common.n.active == false; break; |
| 9146 | case 'o': error += GMT->common.o.active == false; break; |
| 9147 | case 'Z': |
| 9148 | if (!gmt_M_compat_check (GMT, 4)) error++; |
| 9149 | break; |
| 9150 | case 'E': |
| 9151 | if (gmt_M_compat_check (GMT, 4)) |
| 9152 | error += GMT->common.p.active == false; |
| 9153 | else |
| 9154 | error++; |
| 9155 | break; |
| 9156 | case 'p': error += GMT->common.p.active == false; break; |
| 9157 | case 'q': error += (GMT->common.q.active[GMT_IN] == false && GMT->common.q.active[GMT_OUT] == false); break; |
| 9158 | case 'm': if (!gmt_M_compat_check (GMT, 4)) error++; break; |
| 9159 | case 'S': if (!gmt_M_compat_check (GMT, 4)) error++; break; |
| 9160 | case 'F': if (!gmt_M_compat_check (GMT, 4)) error++; break; |
| 9161 | case 'r': error += GMT->common.R.active[GSET] == false; break; |
| 9162 | case 's': error += GMT->common.s.active == false; break; |
no test coverage detected