home *** CD-ROM | disk | FTP | other *** search
/ Practical Programming in Tcl & Tk (4th Edition) / TCLBOOK4.BIN / pc / exsource.old / 45_4.c < prev    next >
Text File  |  2003-04-15  |  470b  |  23 lines

  1. /*
  2.  * Example 45-4
  3.  * The Tcl_Obj structure.
  4.  */
  5.  
  6. typedef struct Tcl_Obj {
  7.     int refCount;                        /* Counts number of shared references */
  8.     char *bytes;                        /* String representation */
  9.     int length;                        /* Number of bytes in the string */
  10.     Tcl_ObjType *typePtr;                        /* Type implementation */
  11.     union {
  12.         long longValue;                    /* Type data */
  13.         double doubleValue;
  14.         VOID *otherValuePtr;
  15.         struct {
  16.             VOID *ptr1;
  17.             VOID *ptr2;
  18.         } twoPtrValue;
  19.     } internalRep;
  20. } Tcl_Obj;
  21.  
  22.  
  23.