*/
XColor *
-Tk_GetColor(interp, tkwin, colormap, name)
- Tcl_Interp *interp; /* Place to leave error message if
+Tk_GetColor (
+ Tcl_Interp *interp, /* Place to leave error message if
* color can't be found. */
- Tk_Window tkwin; /* Window in which color will be used. */
- Colormap colormap; /* Map from which to allocate color. None
+ Tk_Window tkwin, /* Window in which color will be used. */
+ Colormap colormap, /* Map from which to allocate color. None
* means use default. */
- Tk_Uid name; /* Name of color to allocated (in form
+ Tk_Uid name /* Name of color to allocated (in form
* suitable for passing to XParseColor). */
+)
{
NameKey nameKey;
Tcl_HashEntry *nameHashPtr;
*/
XColor *
-Tk_GetColorByValue(interp, tkwin, colormap, colorPtr)
- Tcl_Interp *interp; /* Place to leave error message if
+Tk_GetColorByValue (
+ Tcl_Interp *interp, /* Place to leave error message if
* color can't be found. */
- Tk_Window tkwin; /* Window in which color will be used. */
- Colormap colormap; /* Map from which to allocate color. None
+ Tk_Window tkwin, /* Window in which color will be used. */
+ Colormap colormap, /* Map from which to allocate color. None
* means use default. */
- XColor *colorPtr; /* Red, green, and blue fields indicate
+ XColor *colorPtr /* Red, green, and blue fields indicate
* desired color. */
+)
{
ValueKey valueKey;
Tcl_HashEntry *valueHashPtr;
*/
char *
-Tk_NameOfColor(colorPtr)
- XColor *colorPtr; /* Color whose name is desired. */
+Tk_NameOfColor (
+ XColor *colorPtr /* Color whose name is desired. */
+)
{
register TkColor *tkColPtr = (TkColor *) colorPtr;
static char string[20];
*----------------------------------------------------------------------
*/
-void
-Tk_FreeColor(colorPtr)
- XColor *colorPtr; /* Color to be released. Must have been
+void
+Tk_FreeColor (
+ XColor *colorPtr /* Color to be released. Must have been
* allocated by Tk_GetColor or
* Tk_GetColorByValue. */
+)
{
register TkColor *tkColPtr = (TkColor *) colorPtr;
Visual *visual;
*----------------------------------------------------------------------
*/
-static void
-ColorInit()
+static void
+ColorInit (void)
{
initialized = 1;
Tcl_InitHashTable(&nameTable, sizeof(NameKey)/sizeof(int));