【发布时间】:2018-11-22 22:00:05
【问题描述】:
我想实现我的 Tcl_Channel,它将在 Tcl 和 C 之间进行通信。 我看到使用 Tcl_CreateChannel(...) 创建频道后,使用了
Tcl_SetChannelOption(Tcl_Interp *interp, Tcl_Channel chan, cons char *optionName, const char *newValue);
TCL-C API 函数,此外,我看到几乎总是传递给该函数的内容如下:
参数 1:NULL
参数 2:客户端数据
参数 3:“-translation”或“-buffering”
参数 4:“lf”(在 -translation 的情况下)或“none”(在 -缓冲)
我试图搜索并理解为什么将这个参数传递给这个函数,更重要的是,这个标志和值的含义是什么但找不到任何东西。
我需要解释为什么要使用这个功能以及如何使用它?
【问题讨论】:
-
函数是
fconfigure前面的C API。