summaryrefslogtreecommitdiffstats
path: root/generic/tkColor.h
diff options
context:
space:
mode:
authorhobbs <hobbs>1999-11-19 22:00:02 (GMT)
committerhobbs <hobbs>1999-11-19 22:00:02 (GMT)
commit3fd1d29ce817601c769d7549d8f3c9bec8d49539 (patch)
tree1a1f21c36821c32fa17912052769a5db4bb4d736 /generic/tkColor.h
parent1c7268724fdcf2d1928feb5d8bf0082e3f36c92d (diff)
downloadtk-3fd1d29ce817601c769d7549d8f3c9bec8d49539.zip
tk-3fd1d29ce817601c769d7549d8f3c9bec8d49539.tar.gz
tk-3fd1d29ce817601c769d7549d8f3c9bec8d49539.tar.bz2
* generic/tkColor.c:
* generic/tkColor.h: fixed Tk_NameOfColor to work correctly, with minor change to TkColor struct. * generic/tkConsole.c: added static declaration to ConsoleDeleteProc function (proto already had it)
Diffstat (limited to 'generic/tkColor.h')
-rw-r--r--generic/tkColor.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/generic/tkColor.h b/generic/tkColor.h
index 7e1ab3b..53975c1 100644
--- a/generic/tkColor.h
+++ b/generic/tkColor.h
@@ -9,7 +9,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkColor.h,v 1.5 1999/04/16 01:51:12 stanton Exp $
+ * RCS: @(#) $Id: tkColor.h,v 1.6 1999/11/19 22:00:03 hobbs Exp $
*/
#ifndef _TKCOLOR
@@ -28,6 +28,9 @@
* is a colormap entry allocated for each of these colors.
*/
+#define TK_COLOR_BY_NAME 1
+#define TK_COLOR_BY_VALUE 2
+
#define COLOR_MAGIC ((unsigned int) 0x46140277)
typedef struct TkColor {
@@ -55,8 +58,7 @@ typedef struct TkColor {
* are both 0. */
int objRefCount; /* The number of Tcl objects that reference
* this structure. */
- Tcl_HashTable *tablePtr; /* Hash table that indexes this structure
- * (needed when deleting structure). */
+ int type; /* TK_COLOR_BY_NAME or TK_COLOR_BY_VALUE */
Tcl_HashEntry *hashPtr; /* Pointer to hash table entry for this
* structure. (for use in deleting entry). */
struct TkColor *nextPtr; /* Points to the next TkColor structure with