"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "config.c" between
calc-2.12.7.2.tar.bz2 and calc-2.12.7.6.tar.bz2

About: Calc is a C-style arbitrary precision calculator.

config.c  (calc-2.12.7.2.tar.bz2):config.c  (calc-2.12.7.6.tar.bz2)
skipping to change at line 898 skipping to change at line 898
math_error("Unknown mode \"%s\" for ctrl_d", math_error("Unknown mode \"%s\" for ctrl_d",
vp->v_str->s_str); vp->v_str->s_str);
/*NOTREACHED*/ /*NOTREACHED*/
} }
conf->ctrl_d = temp; conf->ctrl_d = temp;
break; break;
case CONFIG_PROGRAM: case CONFIG_PROGRAM:
math_error("The program config parameter is read-only"); math_error("The program config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_BASENAME: case CONFIG_BASENAME:
math_error("The basename config parameter is read-only"); math_error("The basename config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_WINDOWS: case CONFIG_WINDOWS:
math_error("The windows config parameter is read-only"); math_error("The windows config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_CYGWIN: case CONFIG_CYGWIN:
math_error("The cygwin config parameter is read-only"); math_error("The cygwin config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_COMPILE_CUSTOM: case CONFIG_COMPILE_CUSTOM:
math_error("The custom config parameter is read-only"); math_error("The custom config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_ALLOW_CUSTOM: case CONFIG_ALLOW_CUSTOM:
math_error("The allow_custom config parameter is read-only"); math_error("The allow_custom config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_VERSION: case CONFIG_VERSION:
math_error("The version config parameter is read-only"); math_error("The version config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_BASEB: case CONFIG_BASEB:
math_error("The baseb config parameter is read-only"); math_error("The baseb config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
case CONFIG_REDECL_WARN: case CONFIG_REDECL_WARN:
if (vp->v_type == V_NUM) { if (vp->v_type == V_NUM) {
q = vp->v_num; q = vp->v_num;
conf->redecl_warn = !qiszero(q); conf->redecl_warn = !qiszero(q);
} else if (vp->v_type == V_STR) { } else if (vp->v_type == V_STR) {
temp = lookup_long(truth, vp->v_str->s_str); temp = lookup_long(truth, vp->v_str->s_str);
if (temp < 0) { if (temp < 0) {
math_error("Illegal truth value for " math_error("Illegal truth value for "
"redecl_warn"); "redecl_warn");
skipping to change at line 960 skipping to change at line 968
"dupvar_warn"); "dupvar_warn");
/*NOTREACHED*/ /*NOTREACHED*/
} }
conf->dupvar_warn = (int)temp; conf->dupvar_warn = (int)temp;
} }
break; break;
case CONFIG_HZ: case CONFIG_HZ:
math_error("The clock tick rate config parameter is read-only"); math_error("The clock tick rate config parameter is read-only");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
default: default:
math_error("Setting illegal config parameter"); math_error("Setting illegal config parameter");
/*NOTREACHED*/ /*NOTREACHED*/
abort();
} }
} }
/* /*
* config_copy - copy the configuration from one value to another * config_copy - copy the configuration from one value to another
* *
* given: * given:
* src copy this configuration * src copy this configuration
* *
* returns: * returns:
 End of changes. 10 change blocks. 
0 lines changed or deleted 10 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)