newbie question : call tcl script from C

From: Anis (anismo_at_yahoo.com)
Date: 05/31/04


Date: Mon, 31 May 2004 18:19:00 GMT

hi
 I am relatively new to tcl and have the following problem:
 I need to call a tcl script from C that takes a Tcl_listObj as an argument
and also returns a Tcl_ListObj as a result. I was trying to use Tcl_EvalFile
for the purpose but I fail to figure out how to pass a list as an argument.
Can somebody please give me an example/reference for implementing such a
case?

Thanks in advance
Raj



Relevant Pages

  • Re: newbie question : call tcl script from C
    ... > for the purpose but I fail to figure out how to pass a list as an argument. ... I think you are confusing a file with a command. ... those contents as a Tcl script. ...
    (comp.lang.tcl)
  • Re: Binary scan or format use
    ... data" (for example, a Tcl script is text data, while a JPEG file is ... and I assumed that was the purpose of the binary ... command. ...
    (comp.lang.tcl)