Back to index

texmacs  1.0.7.15
sys_utils.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : sys_utils.hpp
00004 * DESCRIPTION: system utilities
00005 * COPYRIGHT  : (C) 1999  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef SYS_UTILS_H
00013 #define SYS_UTILS_H
00014 #include "string.hpp"
00015 
00016 extern int script_status; // 0: never accept, 1: prompt, 2: always accept
00017 
00018 int    system (string s);
00019 string eval_system (string s);
00020 string var_eval_system (string s);
00021 string get_env (string var);
00022 void   set_env (string var, string with);
00023 string get_stacktrace (unsigned int max_frames= 127);
00024 
00025 #endif // defined SYS_UTILS_H