tclIndexObj.c File Reference

#include "tclInt.h"

Go to the source code of this file.

Data Structures

struct  IndexRep

Defines

#define STRING_AT(table, offset, index)   (*((const char *const *)(((char *)(table)) + ((offset) * (index)))))
#define NEXT_ENTRY(table, offset)   (&(STRING_AT(table, offset, 1)))
#define EXPAND_OF(indexRep)   STRING_AT((indexRep)->tablePtr, (indexRep)->offset, (indexRep)->index)
#define MAY_QUOTE_WORD   (!isFirst)
#define AFTER_FIRST_WORD   (isFirst = 0)

Functions

int Tcl_GetIndexFromObj (Tcl_Interp *interp, Tcl_Obj *objPtr, const char **tablePtr, const char *msg, int flags, int *indexPtr)
int Tcl_GetIndexFromObjStruct (Tcl_Interp *interp, Tcl_Obj *objPtr, const void *tablePtr, int offset, const char *msg, int flags, int *indexPtr)
void Tcl_WrongNumArgs (Tcl_Interp *interp, int objc, Tcl_Obj *const objv[], const char *message)


Define Documentation

#define AFTER_FIRST_WORD   (isFirst = 0)

Referenced by Tcl_WrongNumArgs().

#define EXPAND_OF ( indexRep   )     STRING_AT((indexRep)->tablePtr, (indexRep)->offset, (indexRep)->index)

Definition at line 62 of file tclIndexObj.c.

Referenced by Tcl_WrongNumArgs().

#define MAY_QUOTE_WORD   (!isFirst)

Referenced by Tcl_WrongNumArgs().

#define NEXT_ENTRY ( table,
offset   )     (&(STRING_AT(table, offset, 1)))

Definition at line 60 of file tclIndexObj.c.

Referenced by Tcl_GetIndexFromObjStruct().

#define STRING_AT ( table,
offset,
index   )     (*((const char *const *)(((char *)(table)) + ((offset) * (index)))))

Definition at line 58 of file tclIndexObj.c.


Function Documentation

int Tcl_GetIndexFromObj ( Tcl_Interp interp,
Tcl_Obj objPtr,
const char **  tablePtr,
const char *  msg,
int  flags,
int *  indexPtr 
)

int Tcl_GetIndexFromObjStruct ( Tcl_Interp interp,
Tcl_Obj objPtr,
const void *  tablePtr,
int  offset,
const char *  msg,
int  flags,
int *  indexPtr 
)



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