From 36f300e80721393714e7da6091a0d9f4890d2bc6 Mon Sep 17 00:00:00 2001 From: hobbs Date: Fri, 18 Apr 2003 21:54:14 +0000 Subject: * generic/tkCursor.c: s/GetCursor/TkcGetCursor as Windows has a GetCursor func already, which causes compiler warnings. --- generic/tkCursor.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/generic/tkCursor.c b/generic/tkCursor.c index ce6b381..fc0cd96 100644 --- a/generic/tkCursor.c +++ b/generic/tkCursor.c @@ -11,7 +11,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkCursor.c,v 1.9 2002/08/05 04:30:38 dgp Exp $ + * RCS: @(#) $Id: tkCursor.c,v 1.10 2003/04/18 21:54:14 hobbs Exp $ */ #include "tkPort.h" @@ -44,7 +44,7 @@ static void DupCursorObjProc _ANSI_ARGS_((Tcl_Obj *srcObjPtr, Tcl_Obj *dupObjPtr)); static void FreeCursor _ANSI_ARGS_((TkCursor *cursorPtr)); static void FreeCursorObjProc _ANSI_ARGS_((Tcl_Obj *objPtr)); -static TkCursor * GetCursor _ANSI_ARGS_((Tcl_Interp *interp, +static TkCursor * TkcGetCursor _ANSI_ARGS_((Tcl_Interp *interp, Tk_Window tkwin, CONST char *name)); static TkCursor * GetCursorFromObj _ANSI_ARGS_((Tk_Window tkwin, Tcl_Obj *objPtr)); @@ -147,10 +147,10 @@ Tk_AllocCursorFromObj(interp, tkwin, objPtr) } /* - * Still no luck. Call GetCursor to allocate a new TkCursor object. + * Still no luck. Call TkcGetCursor to allocate a new TkCursor object. */ - cursorPtr = GetCursor(interp, tkwin, Tcl_GetString(objPtr)); + cursorPtr = TkcGetCursor(interp, tkwin, Tcl_GetString(objPtr)); objPtr->internalRep.twoPtrValue.ptr1 = (VOID *) cursorPtr; if (cursorPtr == NULL) { return None; @@ -192,7 +192,7 @@ Tk_GetCursor(interp, tkwin, string) Tk_Uid string; /* Description of cursor. See manual entry * for details on legal syntax. */ { - TkCursor *cursorPtr = GetCursor(interp, tkwin, string); + TkCursor *cursorPtr = TkcGetCursor(interp, tkwin, string); if (cursorPtr == NULL) { return None; } @@ -202,7 +202,7 @@ Tk_GetCursor(interp, tkwin, string) /* *---------------------------------------------------------------------- * - * GetCursor -- + * TkcGetCursor -- * * Given a string describing a cursor, locate (or create if necessary) * a cursor that fits the description. This routine returns the @@ -227,7 +227,7 @@ Tk_GetCursor(interp, tkwin, string) */ static TkCursor * -GetCursor(interp, tkwin, string) +TkcGetCursor(interp, tkwin, string) Tcl_Interp *interp; /* Interpreter to use for error reporting. */ Tk_Window tkwin; /* Window in which cursor will be used. */ CONST char *string; /* Description of cursor. See manual entry -- cgit v0.12