summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2008-04-28 08:32:25 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2008-04-28 08:32:25 (GMT)
commit0c02362da257d3535b17206211d8acb98d6d9e27 (patch)
tree6406e4be2dddf3414d197348079d5af6a39d82e0
parent4513cb9f431ea8c6b151913a016ec6c75bcac559 (diff)
downloadtk-0c02362da257d3535b17206211d8acb98d6d9e27.zip
tk-0c02362da257d3535b17206211d8acb98d6d9e27.tar.gz
tk-0c02362da257d3535b17206211d8acb98d6d9e27.tar.bz2
Forgot to check in critical helper macro!
-rw-r--r--generic/tkCanvas.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/generic/tkCanvas.h b/generic/tkCanvas.h
index 5909611..877ecfe 100644
--- a/generic/tkCanvas.h
+++ b/generic/tkCanvas.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkCanvas.h,v 1.13 2007/12/13 15:24:13 dgp Exp $
+ * RCS: @(#) $Id: tkCanvas.h,v 1.14 2008/04/28 08:32:25 dkf Exp $
*/
#ifndef _TKCANVAS
@@ -293,7 +293,7 @@ typedef struct TkCanvas {
*/
MODULE_SCOPE int TkCanvPostscriptCmd(TkCanvas *canvasPtr,
- Tcl_Interp *interp, int argc, CONST char **argv);
+ Tcl_Interp *interp, int argc, const char **argv);
MODULE_SCOPE int TkCanvTranslatePath(TkCanvas *canvPtr,
int numVertex, double *coordPtr, int closed,
XPoint *outPtr);
@@ -305,4 +305,10 @@ MODULE_SCOPE Tk_ItemType tkArcType, tkBitmapType, tkImageType, tkLineType;
MODULE_SCOPE Tk_ItemType tkOvalType, tkPolygonType;
MODULE_SCOPE Tk_ItemType tkRectangleType, tkTextType, tkWindowType;
+/*
+ * Convenience macro.
+ */
+
+#define Canvas(canvas) ((TkCanvas *) (canvas))
+
#endif /* _TKCANVAS */