References _, CB_ANY, CB_ARCHAIC, CB_ASSIGN_IBM, CB_ASSIGN_MF, CB_BINARY_SIZE_1_2_4_8, CB_BINARY_SIZE_1__8, CB_BINARY_SIZE_2_4_8, CB_BOOLEAN, CB_BYTEORDER_BIG_ENDIAN, CB_BYTEORDER_NATIVE, CB_CONFIG_SIZE, CB_ERROR, CB_IGNORE, CB_INT, CB_OBSOLETE, CB_OK, CB_SKIP, CB_STRING, CB_SUPPORT, CB_UNCONFORMABLE, CB_WARNING, cobc_main_malloc(), cobc_nores_base, config_table, configuration_error(), invalid_value(), config_struct::name, noreserve::next, noreserve::noresword, NULL, read_string(), unsupported_value(), config_struct::val, and config_struct::var.
Referenced by cb_load_conf(), and process_command_line().
148 s = strpbrk (buff,
" \t:=");
151 _(
"Invalid configuration '%s'"), buff);
162 if (i == CB_CONFIG_SIZE) {
169 for (s++; *s && strchr (
" \t:=", *s); s++) {
173 for (e = s + 1; *e && !strchr (
"#", *e); e++) {
177 for (--e; e >= s && strchr (
" \t\r\n", *e); e--) {
189 if (strcmp (name,
"assign-clause") == 0) {
190 if (strcmp (val,
"cobol2002") == 0) {
193 }
else if (strcmp (val,
"mf") == 0) {
195 }
else if (strcmp (val,
"ibm") == 0) {
201 }
else if (strcmp (name,
"binary-size") == 0) {
202 if (strcmp (val,
"2-4-8") == 0) {
204 }
else if (strcmp (val,
"1-2-4-8") == 0) {
206 }
else if (strcmp (val,
"1--8") == 0) {
212 }
else if (strcmp (name,
"binary-byteorder") == 0) {
213 if (strcmp (val,
"native") == 0) {
215 }
else if (strcmp (val,
"big-endian") == 0) {
224 for (j = 0; val[j]; j++) {
225 if (val[j] <
'0' || val[j] >
'9') {
231 *((
int *)var) = atoi (val);
236 if (strcmp (name,
"include") == 0) {
242 _(
"'%s' not supported with -cb_conf"), name);
245 }
else if (strcmp (name,
"not-reserved") == 0) {
255 *((
const char **)var) = val;
259 if (strcmp (val,
"yes") == 0) {
261 }
else if (strcmp (val,
"no") == 0) {
269 if (strcmp (val,
"ok") == 0) {
271 }
else if (strcmp (val,
"warning") == 0) {
273 }
else if (strcmp (val,
"archaic") == 0) {
275 }
else if (strcmp (val,
"obsolete") == 0) {
277 }
else if (strcmp (val,
"skip") == 0) {
279 }
else if (strcmp (val,
"ignore") == 0) {
281 }
else if (strcmp (val,
"error") == 0) {
283 }
else if (strcmp (val,
"unconformable") == 0) {