Mercurial > octave-libgccjit
view libinterp/config-features.sh @ 18946:0be65bd7f369 gui-release
add an user preference for loading changed files without a prompt (bug #42678)
* file-editor-tab.cc (file_has_changed): check user preference before prompting
for reloading the file;
(notice-settings): get flag for prompting before reloading file from settings;
* file-editor-tab.h: new flag _always_reload_changed files
* settings-dialog.ui: new check box for new preference
* settings-dialog.cc (constructor): get state of new check box from settings;
(write_changes_settings): write state of new check box into settings
author | Torsten <ttl@justmail.de> |
---|---|
date | Sun, 20 Jul 2014 21:23:32 +0200 |
parents | 2a4f83826024 |
children |
line wrap: on
line source
#! /bin/sh set -e AWK=${AWK:-awk} conffile=$1 cat << EOF // DO NOT EDIT! Generated automatically from $conffile by Make." #include "oct-map.h" #include "ov.h" octave_scalar_map octave_config_features (void) { octave_scalar_map m; EOF $AWK \ '/#define HAVE_/ { sub (/HAVE_/, "", $2); printf (" m.assign (\"%s\", octave_value (true));\n", $2); } /\/\* #undef HAVE_/ { sub (/HAVE_/, "", $3); printf (" m.assign (\"%s\", octave_value (false));\n", $3); } { }' $conffile cat << EOF return m; } EOF