Browse Source

miscoms.c, mscvars.c, spinit.in, variable 'askquit' instead of 'noaskquit'

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
fc83bd099a
  1. 2
      src/frontend/misccoms.c
  2. 2
      src/frontend/miscvars.c
  3. 4
      src/spinit.in

2
src/frontend/misccoms.c

@ -45,7 +45,7 @@ com_quit(wordlist *wl)
bool noask = bool noask =
(wl && wl->wl_word && 1 == sscanf(wl->wl_word, "%d", &exitcode)) || (wl && wl->wl_word && 1 == sscanf(wl->wl_word, "%d", &exitcode)) ||
(wl && wl->wl_word && cieq(wl->wl_word, "noask")) || (wl && wl->wl_word && cieq(wl->wl_word, "noask")) ||
cp_getvar("noaskquit", CP_BOOL, NULL);
!cp_getvar("askquit", CP_BOOL, NULL);
/* update screen and reset terminal */ /* update screen and reset terminal */
gr_clean(); gr_clean();

2
src/frontend/miscvars.c

@ -28,6 +28,7 @@ char *ft_setkwords[] = {
"addcontrol", "addcontrol",
"altshow", "altshow",
"appendwrite", "appendwrite",
"askquit",
"brief", "brief",
"bypass", "bypass",
"chgtol", "chgtol",
@ -80,7 +81,6 @@ char *ft_setkwords[] = {
"moremode", "moremode",
"nfreqs", "nfreqs",
"noasciiplotvalue", "noasciiplotvalue",
"noaskquit",
"nobjthack", "nobjthack",
"nobreak", "nobreak",
"noclobber", "noclobber",

4
src/spinit.in

@ -7,8 +7,8 @@ set x11lineararcs
*set filetype=ascii *set filetype=ascii
** frontend debug output ** ** frontend debug output **
*set ngdebug *set ngdebug
** no asking after quit **
set noaskquit
** asking after quit **
*set askquit
** set the number of threads in openmp ** set the number of threads in openmp
** default (if compiled with --enable-openmp) is: 2 ** default (if compiled with --enable-openmp) is: 2
*set num_threads=4 *set num_threads=4

Loading…
Cancel
Save