"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib_calc.c" between
calc-2.12.8.1.tar.bz2 and calc-2.12.8.2.tar.bz2

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

lib_calc.c  (calc-2.12.8.1.tar.bz2):lib_calc.c  (calc-2.12.8.2.tar.bz2)
skipping to change at line 556 skipping to change at line 556
calc_history = NULL; /* will use ~/.calc_history */ calc_history = NULL; /* will use ~/.calc_history */
/* determine the $CALCHELP value */ /* determine the $CALCHELP value */
c = (no_env ? NULL : getenv(CALCHELP)); c = (no_env ? NULL : getenv(CALCHELP));
calc_helpdir = (c ? strdup(c) : NULL); calc_helpdir = (c ? strdup(c) : NULL);
if (calc_helpdir == NULL || *calc_helpdir == '\0') { if (calc_helpdir == NULL || *calc_helpdir == '\0') {
/* will use /usr/local/share/calc/help */ /* will use /usr/local/share/calc/help */
calc_helpdir = HELPDIR; calc_helpdir = HELPDIR;
} }
#if defined(CUSTOM)
/* determine the $CALCCUSTOMHELP value */ /* determine the $CALCCUSTOMHELP value */
c = (no_env ? NULL : getenv(CALCCUSTOMHELP)); c = (no_env ? NULL : getenv(CALCCUSTOMHELP));
calc_customhelpdir = (c ? strdup(c) : NULL); calc_customhelpdir = (c ? strdup(c) : NULL);
if (calc_customhelpdir == NULL || *calc_customhelpdir == '\0') { if (calc_customhelpdir == NULL || *calc_customhelpdir == '\0') {
/* will use /usr/local/share/calc/custhelp */ /* will use /usr/local/share/calc/custhelp */
calc_customhelpdir = CUSTOMHELPDIR; calc_customhelpdir = CUSTOMHELPDIR;
} }
#endif /* CUSTOM */
} }
/* /*
* libcalc_call_me_last - users of libcalc.a can call this function when done * libcalc_call_me_last - users of libcalc.a can call this function when done
* *
* Anything that uses libcalc.a can call this function after they are * Anything that uses libcalc.a can call this function after they are
* completely finished with libcalc.a processing. The only effect of * completely finished with libcalc.a processing. The only effect of
* this function is to free storage that might otherwise go unused. * this function is to free storage that might otherwise go unused.
* *
* NOTE: If, for any reason, you need to do more libcalc.a processing, * NOTE: If, for any reason, you need to do more libcalc.a processing,
 End of changes. 2 change blocks. 
0 lines changed or deleted 2 lines changed or added

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