summaryrefslogtreecommitdiffstats
path: root/generic/tclInt.h
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2004-10-21 15:19:43 (GMT)
committerdgp <dgp@users.sourceforge.net>2004-10-21 15:19:43 (GMT)
commit302b35c0ac3658a27a30f795d3229e8a43eb5379 (patch)
tree876886b2a00fbe951800502983cfa1c7e9edc97b /generic/tclInt.h
parent0e16d1cc7dd629f7bb9a3d1af174b072e9c8ae6c (diff)
downloadtcl-302b35c0ac3658a27a30f795d3229e8a43eb5379.zip
tcl-302b35c0ac3658a27a30f795d3229e8a43eb5379.tar.gz
tcl-302b35c0ac3658a27a30f795d3229e8a43eb5379.tar.bz2
* generic/tclCmdAH.c (Tcl_CatchObjCmd, Tcl_ErrorObjCmd):
Updated to call the new TclGet/SetReturnOptions routines to do much of their work. * generic/tclInt.h (TclGetReturnOptions,TclSetReturnOptions): * generic/tclResult.c (TclGetReturnOptions,TclSetReturnOptions): New utility routines to get/set the return options of an interp. Intent is that these routines will be converted to public routines after TIP approval. * generic/tclCmdMZ.c (TclProcessReturn,TclMergeReturnOptions): * generic/tclResult.c (TclProcessReturn,TclMergeReturnOptions): Move internal utility routines from tclCmdMZ.c to tclResult.c. * generic/tclBasic.c (Tcl_CreateInterp, Tcl_DeleteInterp): * generic/tclResult.c (TclTransferResult): Rework so that iPtr->returnOpts can be NULL when there are no special options. * generic/tclResult.c (TclRestoreInterpState): Plug potential memory leak.
Diffstat (limited to 'generic/tclInt.h')
-rw-r--r--generic/tclInt.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/generic/tclInt.h b/generic/tclInt.h
index f2dc36e..90f02ac 100644
--- a/generic/tclInt.h
+++ b/generic/tclInt.h
@@ -12,7 +12,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclInt.h,v 1.184 2004/10/21 03:53:04 kennykb Exp $
+ * RCS: @(#) $Id: tclInt.h,v 1.185 2004/10/21 15:19:46 dgp Exp $
*/
#ifndef _TCLINT
@@ -1740,6 +1740,8 @@ EXTERN void TclFinalizeAsync _ANSI_ARGS_((void));
EXTERN void TclFinalizeSynchronization _ANSI_ARGS_((void));
EXTERN void TclFinalizeLock _ANSI_ARGS_((void));
EXTERN void TclFinalizeThreadData _ANSI_ARGS_((void));
+EXTERN Tcl_Obj * TclGetReturnOptions _ANSI_ARGS_((Tcl_Interp *interp,
+ int result));
EXTERN int TclGlob _ANSI_ARGS_((Tcl_Interp *interp,
char *pattern, Tcl_Obj *unquotedPrefix,
int globFlags, Tcl_GlobTypeData* types));
@@ -1912,6 +1914,8 @@ EXTERN int TclRestoreInterpState _ANSI_ARGS_ ((
Tcl_Interp *interp, TclInterpState state));
EXTERN TclInterpState TclSaveInterpState _ANSI_ARGS_ ((
Tcl_Interp *interp, int status));
+EXTERN int TclSetReturnOptions _ANSI_ARGS_((Tcl_Interp *interp,
+ Tcl_Obj *options));
EXTERN VOID TclSignalExitThread _ANSI_ARGS_((Tcl_ThreadId id,
int result));
EXTERN int TclSubstTokens _ANSI_ARGS_((Tcl_Interp *interp,