]>
git.zerfleddert.de Git - micropolis/blob - src/tclx/src/tclxtend.h
338e7f9ddefbdcce972d345fd10186e86ea685e9
4 * External declarations for the extended Tcl library.
5 *-----------------------------------------------------------------------------
6 * Copyright 1992 Karl Lehenbauer and Mark Diekhans.
8 * Permission to use, copy, modify, and distribute this software and its
9 * documentation for any purpose and without fee is hereby granted, provided
10 * that the above copyright notice appear in all copies. Karl Lehenbauer and
11 * Mark Diekhans make no representations about the suitability of this
12 * software for any purpose. It is provided "as is" without express or
14 *-----------------------------------------------------------------------------
15 * $Id: tclExtend.h,v 2.0 1992/10/16 04:51:29 markd Rel $
16 *-----------------------------------------------------------------------------
26 * Version suffix for extended Tcl, this is appended to the standard Tcl
27 * version to form the actual extended Tcl version.
30 #define TCL_EXTD_VERSION_SUFFIX "c" /* 6.1c, 6.2c or 6.3c */
34 #define TCL_NO_FILE_LOCKING
35 #define TCL_IEEE_FP_MATH
36 #define TCL_32_BIT_RANDOM
41 typedef void *void_pt
;
44 * Flags for Tcl shell startup.
46 #define TCLSH_QUICK_STARTUP 1 /* Don't process default & init files. */
47 #define TCLSH_ABORT_STARTUP_ERR 2 /* Abort on an error. */
48 #define TCLSH_NO_INIT_FILE 4 /* Don't process the init file. */
51 * These globals are used by the infox command. Should be set by main.
54 extern char *tclxVersion
; /* Extended Tcl version number. */
55 extern int tclxPatchlevel
; /* Extended Tcl patch level. */
57 extern char *tclAppName
; /* Application name */
58 extern char *tclAppLongname
; /* Long, natural language application name */
59 extern char *tclAppVersion
; /* Version number of the application */
62 * If set to be a pointer to the procedure Tcl_RecordAndEval, will link in
63 * history. Should be set by main.
65 extern int (*tclShellCmdEvalProc
) ();
68 * If non-zero, a signal was received. Normally signals are handled in
69 * Tcl_Eval, but if an application does not return to eval for some period
70 * of time, then this should be checked and Tcl_CheckForSignal called if
73 extern int tclReceivedSignal
;
76 * Exported Extended Tcl functions.
80 Tcl_CheckForSignal
_ANSI_ARGS_((Tcl_Interp
*interp
,
84 Tcl_CommandLoop
_ANSI_ARGS_((Tcl_Interp
*interp
,
91 Tcl_CreateExtendedInterp ();
94 Tcl_DeleteKeyedListField
_ANSI_ARGS_((Tcl_Interp
*interp
,
95 CONST
char *fieldName
,
96 CONST
char *keyedList
));
98 Tcl_DownShift
_ANSI_ARGS_((char *targetStr
,
99 CONST
char *sourceStr
));
101 Tcl_ErrorAbort
_ANSI_ARGS_((Tcl_Interp
*interp
,
105 Tcl_UpShift
_ANSI_ARGS_((char *targetStr
,
106 CONST
char *sourceStr
));
109 Tcl_GetKeyedListField
_ANSI_ARGS_((Tcl_Interp
*interp
,
110 CONST
char *fieldName
,
111 CONST
char *keyedList
,
112 char **fieldValuePtr
));
115 Tcl_GetKeyedListKeys
_ANSI_ARGS_((Tcl_Interp
*interp
,
116 CONST
char *subFieldName
,
117 CONST
char *keyedList
,
119 char ***keyesArgvPtr
));
122 Tcl_GetLong
_ANSI_ARGS_((Tcl_Interp
*interp
,
127 Tcl_GetUnsigned
_ANSI_ARGS_((Tcl_Interp
*interp
,
129 unsigned *unsignedPtr
));
132 Tcl_SetKeyedListField
_ANSI_ARGS_((Tcl_Interp
*interp
,
133 CONST
char *fieldName
,
134 CONST
char *fieldvalue
,
135 CONST
char *keyedList
));
138 Tcl_StrToLong
_ANSI_ARGS_((CONST
char *string
,
143 Tcl_StrToInt
_ANSI_ARGS_((CONST
char *string
,
148 Tcl_StrToUnsigned
_ANSI_ARGS_((CONST
char *string
,
150 unsigned *unsignedPtr
));
153 Tcl_StrToDouble
_ANSI_ARGS_((CONST
char *string
,
157 Tcl_HandleAlloc
_ANSI_ARGS_((void_pt headerPtr
,
161 Tcl_HandleFree
_ANSI_ARGS_((void_pt headerPtr
,
165 Tcl_HandleTblInit
_ANSI_ARGS_((CONST
char *handleBase
,
170 Tcl_HandleTblRelease
_ANSI_ARGS_((void_pt headerPtr
));
173 Tcl_HandleTblUseCount
_ANSI_ARGS_((void_pt headerPtr
,
177 Tcl_HandleWalk
_ANSI_ARGS_((void_pt headerPtr
,
181 Tcl_WalkKeyToHandle
_ANSI_ARGS_((void_pt headerPtr
,
186 Tcl_HandleXlate
_ANSI_ARGS_((Tcl_Interp
*interp
,
188 CONST
char *handle
));
191 Tcl_MathError
_ANSI_ARGS_((char *functionName
,
195 Tcl_Startup
_ANSI_ARGS_((Tcl_Interp
*interp
,
198 CONST
char *defaultFile
,
202 Tcl_ShellEnvInit
_ANSI_ARGS_((Tcl_Interp
*interp
,
204 CONST
char *programName
,
208 CONST
char *defaultFile
));
211 Tcl_System
_ANSI_ARGS_((Tcl_Interp
*interp
,