tclIORChan.c File Reference

#include <tclInt.h>
#include <tclIO.h>
#include <assert.h>

Go to the source code of this file.

Data Structures

struct  ReflectedChannel
struct  ReflectedChannelMap

Defines

#define EINVAL   9
#define EOK   0
#define RCMKEY   "ReflectedChannelMap"
#define FLAG(m)   (1 << (m))
#define REQUIRED_METHODS   (FLAG(METH_INIT) | FLAG(METH_FINAL) | FLAG(METH_WATCH))
#define NULLABLE_METHODS
#define RANDW   (TCL_READABLE | TCL_WRITABLE)
#define IMPLIES(a, b)   ((!(a)) || (b))
#define NEGIMPL(a, b)
#define HAS(x, f)   (x & FLAG(f))
#define SetChannelErrorStr(c, msgStr)   Tcl_SetChannelError((c), Tcl_NewStringObj((msgStr), -1))
#define MODE   (1)
#define CMD   (2)
#define CHAN   (1)
#define EVENT   (2)

Enumerations

enum  EventOption { EVENT_READ, EVENT_WRITE }
enum  MethodName {
  METH_BLOCKING, METH_CGET, METH_CGETALL, METH_CONFIGURE,
  METH_FINAL, METH_INIT, METH_READ, METH_SEEK,
  METH_WATCH, METH_WRITE
}

Functions

int TclChanCreateObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const *objv)
int TclChanPostEventObjCmd (ClientData clientData, Tcl_Interp *interp, int objc, Tcl_Obj *const *objv)
int TclChanCaughtErrorBypass (Tcl_Interp *interp, Tcl_Channel chan)


Define Documentation

#define CHAN   (1)

Referenced by TclChanPostEventObjCmd().

#define CMD   (2)

Referenced by TclChanCreateObjCmd().

#define EINVAL   9

#define EOK   0

Definition at line 29 of file tclIORChan.c.

#define EVENT   (2)

Referenced by TclChanPostEventObjCmd().

#define FLAG (  )     (1 << (m))

Definition at line 197 of file tclIORChan.c.

Referenced by TclChanCreateObjCmd().

#define HAS ( x,
 )     (x & FLAG(f))

Definition at line 209 of file tclIORChan.c.

Referenced by TclChanCreateObjCmd().

#define IMPLIES ( a,
 )     ((!(a)) || (b))

Definition at line 207 of file tclIORChan.c.

Referenced by TclChanCreateObjCmd().

#define MODE   (1)

Referenced by TclChanCreateObjCmd().

#define NEGIMPL ( a,
 ) 

Definition at line 208 of file tclIORChan.c.

#define NULLABLE_METHODS

Value:

Definition at line 200 of file tclIORChan.c.

Referenced by TclChanCreateObjCmd().

#define RANDW   (TCL_READABLE | TCL_WRITABLE)

Definition at line 204 of file tclIORChan.c.

#define RCMKEY   "ReflectedChannelMap"

Definition at line 154 of file tclIORChan.c.

#define REQUIRED_METHODS   (FLAG(METH_INIT) | FLAG(METH_FINAL) | FLAG(METH_WATCH))

Definition at line 198 of file tclIORChan.c.

Referenced by TclChanCreateObjCmd().

#define SetChannelErrorStr ( c,
msgStr   )     Tcl_SetChannelError((c), Tcl_NewStringObj((msgStr), -1))

Definition at line 400 of file tclIORChan.c.


Enumeration Type Documentation

Enumerator:
EVENT_READ 
EVENT_WRITE 

Definition at line 163 of file tclIORChan.c.

enum MethodName

Enumerator:
METH_BLOCKING 
METH_CGET 
METH_CGETALL 
METH_CONFIGURE 
METH_FINAL 
METH_INIT 
METH_READ 
METH_SEEK 
METH_WATCH 
METH_WRITE 

Definition at line 184 of file tclIORChan.c.


Function Documentation



Generated on Wed Mar 12 12:18:32 2008 by  doxygen 1.5.1