/* * ScriptProc.h * by Kirk Abbott and Ben Allan * Created: 1/94 * Version: $Revision: 1.9 $ * Version control file: $RCSfile: ScriptProc.h,v $ * Date last modified: $Date: 2003/08/23 18:43:07 $ * Last modified by: $Author: ballan $ * * This file is part of the ASCEND Tcl/Tk interface * * Copyright 1997, Carnegie Mellon University * * The ASCEND Tcl/Tk interface is free software; you can redistribute * it and/or modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of the * License, or (at your option) any later version. * * The ASCEND Tcl/Tk interface is distributed in hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public License * along with the program; if not, write to the Free Software Foundation, * Inc., 675 Mass Ave, Cambridge, MA 02139 USA. Check the file named * COPYING. COPYING is found in ../compiler. */ /** @file * Script procedures. *
* Requires: #include "tcl.h" * #include "utilities/ascConfig.h" **/ #ifndef ScriptProc_module_loaded #define ScriptProc_module_loaded extern int Asc_ScriptInterrupt; /**< * The C variable corresponding to the script being interrupted * by an interactive user or call with a trapped exception. */ extern int Asc_ScriptConfigureInterrupt(int bool, Tcl_Interp *interp); /**< * * * Configures the script variable ascScripVect(menubreak) to * shadow the C int Asc_ScriptInterrupt. * Tcl makes sure changes to ascScripVect(menubreak) * are reflected in the C variable. * See the man pages of Tcl_LinkVar, Tcl_UnlinkVar, Tcl_UpdateLinkedVar * for details. * * @param interp The interpretter the ascend application is running in. * @param bool Is 1 at startup and 0 at shutdown. * @return Returns 0 if the call is ok, 1 if the call is not ok. */ extern int Asc_ScriptEvalCmd(ClientData cdata, Tcl_Interp *interp, int argc, CONST84 char *argv[]); /**< * * Attempts to evaluate in the global sphere rather than locally.