RE: [tcljava-dev] Channel drivers and fconfigure command for Jacl
Brought to you by:
mdejong
From: Mo D. <su...@ba...> - 2001-11-30 06:09:04
|
On Fri, 23 Nov 2001 19:56:41 -0500 "Johnson, Bruce A" <bru...@me...> wrote: > Mo, > > I've uploaded a tar file (modfiles.tar.gz) of the changed java source files > and a text file listing the files and summarizing the changes. You can find > them both by > ftp'ing to www.nmrview.com and looking in /pub/tcljava. Bruce, looking at the code for Channel.java, I notice the following: /** * Translation mode for end-of-line character */ protected int translation[] = {0, 0}; And also: /** * EOF character 0: for input 1: for output */ protected Character eofChar[] = {null, null}; But in the Tcl source code, the following is used: Tcl_EolTranslation inputTranslation; /* What translation to apply for end of line * sequences on input? */ Tcl_EolTranslation outputTranslation; /* What translation to use for generating * end of line sequences in output? */ int inEofChar; /* If nonzero, use this as a signal of EOF * on input. */ int outEofChar; /* If nonzero, append this to the channel * when it is closed if it is open for * writing. */ Why should we use an array instead of two variables? cheers Mo |