"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib_calc.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.

lib_calc.c  (calc-2.12.7.2.tar.bz2):lib_calc.c  (calc-2.12.7.6.tar.bz2)
skipping to change at line 143 skipping to change at line 143
/* /*
* global values * global values
*/ */
char *calcpath = NULL; /* $CALCPATH or default */ char *calcpath = NULL; /* $CALCPATH or default */
char *calcrc = NULL; /* $CALCRC or default */ char *calcrc = NULL; /* $CALCRC or default */
char *calcbindings = NULL; /* $CALCBINDINGS or default */ char *calcbindings = NULL; /* $CALCBINDINGS or default */
char *home = NULL; /* $HOME or default */ char *home = NULL; /* $HOME or default */
char *pager = NULL; /* $PAGER or default */ char *pager = NULL; /* $PAGER or default */
char *shell = NULL; /* $SHELL or default */ char *shell = NULL; /* $SHELL or default */
char *calc_history = NULL; /* $CALCHISTFILE or ~/.calc_history */
int stdin_tty = FALSE; /* TRUE if stdin is a tty */ int stdin_tty = FALSE; /* TRUE if stdin is a tty */
int havecommands = FALSE; /* TRUE if have one or more cmd args */ int havecommands = FALSE; /* TRUE if have one or more cmd args */
long stoponerror = 0; /* >0 => stop, <0 => continue, ==0 => use -c */ long stoponerror = 0; /* >0 => stop, <0 => continue, ==0 => use -c */
BOOL abort_now = FALSE; /* TRUE => go interactive now, if permitt ed */ BOOL abort_now = FALSE; /* TRUE => go interactive now, if permitt ed */
/* non-zero => calc_scanerr_jmpbuf ready */ /* non-zero => calc_scanerr_jmpbuf ready */
int calc_use_scanerr_jmpbuf = 0; int calc_use_scanerr_jmpbuf = 0;
/* for scan and parse errors */ /* for scan and parse errors */
jmp_buf calc_scanerr_jmpbuf; jmp_buf calc_scanerr_jmpbuf;
skipping to change at line 537 skipping to change at line 538
c = (no_env ? NULL : getenv(PAGER)); c = (no_env ? NULL : getenv(PAGER));
pager = (c ? strdup(c) : NULL); pager = (c ? strdup(c) : NULL);
if (pager == NULL || *pager == '\0') if (pager == NULL || *pager == '\0')
pager = DEFAULTCALCPAGER; pager = DEFAULTCALCPAGER;
/* determine the $SHELL value */ /* determine the $SHELL value */
c = (no_env ? NULL : getenv(SHELL)); c = (no_env ? NULL : getenv(SHELL));
shell = (c ? strdup(c) : NULL); shell = (c ? strdup(c) : NULL);
if (shell == NULL || *shell == '\0') if (shell == NULL || *shell == '\0')
shell = DEFAULTSHELL; shell = DEFAULTSHELL;
/* determine the $CALCHISTFILE value */
c = (no_env ? NULL : getenv(CALCHISTFILE));
calc_history = (c ? strdup(c) : NULL);
if (calc_history == NULL || *calc_history == '\0')
calc_history = NULL; /* will use ~/.calc_history */
} }
/* /*
* 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 7 lines changed or added

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