ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

This manual page is associated with the Mac OS X developer tools. The software or headers described may not be present on your Mac OS X installation until you install the developer tools package. This package is available on your Mac OS X installation DVD, and the latest versions can be downloaded from developer.apple.com.

For more information about the manual page format, see the manual page for manpages(5).



Tcl_RecordAndEvalObj(3)                    Tcl Library Procedures                    Tcl_RecordAndEvalObj(3)



____________________________________________________________________________________________________________

NAME
       Tcl_RecordAndEvalObj - save command on history list before evaluating

SYNOPSIS
       #include <tcl.h>

       int
       Tcl_RecordAndEvalObj(interp, cmdPtr, flags)

ARGUMENTS
       Tcl_Interp   *interp    (in)      Tcl interpreter in which to evaluate command.

       Tcl_Obj      *cmdPtr    (in)      Points  to  a  Tcl object containing a command (or sequence of com-mands) commands)
                                         mands) to execute.

       int          flags      (in)      An OR'ed combination of flag bits.  TCL_NO_EVAL  means  record  the
                                         command  but don't evaluate it.  TCL_EVAL_GLOBAL means evaluate the
                                         command at global level instead of the current stack level.
____________________________________________________________________________________________________________


DESCRIPTION
       Tcl_RecordAndEvalObj is invoked to record a command as an event on the history list and then  execute
       it using Tcl_EvalObjEx (or Tcl_GlobalEvalObj if the TCL_EVAL_GLOBAL bit is set in flags).  It returns
       a completion code such as TCL_OK just like Tcl_EvalObjEx, as well as a result object containing addi-tional additional
       tional  information  (a  result value or error message) that can be retrieved using Tcl_GetObjResult.
       If you don't want the command recorded on the history  list  then  you  should  invoke  Tcl_EvalObjEx
       instead  of  Tcl_RecordAndEvalObj.   Normally Tcl_RecordAndEvalObj is only called with top-level com-mands commands
       mands typed by the user, since the purpose of history is to allow  the  user  to  re-issue  recently-invoked recentlyinvoked
       invoked  commands.   If  the flags argument contains the TCL_NO_EVAL bit then the command is recorded
       without being evaluated.


SEE ALSO
       Tcl_EvalObjEx, Tcl_GetObjResult


KEYWORDS
       command, event, execute, history, interpreter, object, record



Tcl                                                  8.0                             Tcl_RecordAndEvalObj(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.