summaryrefslogtreecommitdiffstats
path: root/Lib/asyncio
ModeNameSize
-rw-r--r--__init__.py1436logstatsplain
-rw-r--r--base_events.py47231logstatsplain
-rw-r--r--base_subprocess.py8649logstatsplain
-rw-r--r--compat.py505logstatsplain
-rw-r--r--constants.py195logstatsplain
-rw-r--r--coroutines.py9201logstatsplain
-rw-r--r--events.py19622logstatsplain
-rw-r--r--futures.py14721logstatsplain
-rw-r--r--locks.py14403logstatsplain
-rw-r--r--log.py124logstatsplain
-rw-r--r--proactor_events.py20119logstatsplain
-rw-r--r--protocols.py4512logstatsplain
-rw-r--r--queues.py10354logstatsplain
-rw-r--r--selector_events.py39251logstatsplain
-rw-r--r--sslproto.py25196logstatsplain
-rw-r--r--streams.py17098logstatsplain
-rw-r--r--subprocess.py7182logstatsplain
-rw-r--r--tasks.py23493logstatsplain
-rw-r--r--test_utils.py12554logstatsplain
-rw-r--r--transports.py9726logstatsplain
-rw-r--r--unix_events.py34324logstatsplain
-rw-r--r--windows_events.py27705logstatsplain
-rw-r--r--windows_utils.py6844logstatsplain
ment'>dgp_experiment Tcl is a high-level, general-purpose, interpreted, dynamic programming language. It was designed with the goal of being very simple but powerful.
summaryrefslogtreecommitdiffstats
path: root/doc/RecEvalObj.3
blob: 1d77c1201b9eb5678e56d9da59139819e6c166fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
'\"
'\" Copyright (c) 1997 Sun Microsystems, Inc.
'\"
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
.TH Tcl_RecordAndEvalObj 3 8.0 Tcl "Tcl Library Procedures"
.so man.macros
.BS
.SH NAME
Tcl_RecordAndEvalObj \- save command on history list before evaluating
.SH SYNOPSIS
.nf
\fB#include <tcl.h>\fR
.sp
int
\fBTcl_RecordAndEvalObj\fR(\fIinterp, cmdPtr, flags\fR)
.SH ARGUMENTS
.AS Tcl_Interp *interp
.AP Tcl_Interp *interp in
Tcl interpreter in which to evaluate command.
.AP Tcl_Obj *cmdPtr in
Points to a Tcl value containing a command (or sequence of commands)
to execute.
.AP int flags in
An OR'ed combination of flag bits.  \fBTCL_NO_EVAL\fR means record the
command but do not evaluate it.  \fBTCL_EVAL_GLOBAL\fR means evaluate
the command at global level instead of the current stack level.
.BE

.SH DESCRIPTION
.PP
\fBTcl_RecordAndEvalObj\fR is invoked to record a command as an event
on the history list and then execute it using \fBTcl_EvalObjEx\fR.
It returns a completion code such as \fBTCL_OK\fR just like \fBTcl_EvalObjEx\fR,
as well as a result value containing additional information
(a result value or error message)
that can be retrieved using \fBTcl_GetObjResult\fR.
If you do not want the command recorded on the history list then
you should invoke \fBTcl_EvalObjEx\fR instead of \fBTcl_RecordAndEvalObj\fR.
Normally \fBTcl_RecordAndEvalObj\fR is only called with top-level
commands typed by the user, since the purpose of history is to
allow the user to re-issue recently invoked commands.
If the \fIflags\fR argument contains the \fBTCL_NO_EVAL\fR bit then
the command is recorded without being evaluated.

.SH "SEE ALSO"
Tcl_EvalObjEx, Tcl_GetObjResult

.SH KEYWORDS
command, event, execute, history, interpreter, value, record