diff options
author | nijtmans <nijtmans> | 2007-01-05 00:00:47 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2007-01-05 00:00:47 (GMT) |
commit | 67771314a2fb4326cc411f74011c1d47edd3bfa5 (patch) | |
tree | ef0668274bd47be5de7af3d70163084f9e530aa3 /macosx | |
parent | b89f2e9fa3ed933c2d1599be0cdc0f4616ae17c7 (diff) | |
download | tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.zip tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.tar.gz tk-67771314a2fb4326cc411f74011c1d47edd3bfa5.tar.bz2 |
various "const" additions, in line with TIP #27
fix bug #1627732
Diffstat (limited to 'macosx')
-rw-r--r-- | macosx/tkMacOSXPort.h | 10 | ||||
-rw-r--r-- | macosx/tkMacOSXWm.c | 4 | ||||
-rw-r--r-- | macosx/tkMacOSXWm.h | 4 |
3 files changed, 9 insertions, 9 deletions
diff --git a/macosx/tkMacOSXPort.h b/macosx/tkMacOSXPort.h index ef276b6..25b6b7d 100644 --- a/macosx/tkMacOSXPort.h +++ b/macosx/tkMacOSXPort.h @@ -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: tkMacOSXPort.h,v 1.9 2006/09/10 17:06:32 das Exp $ + * RCS: @(#) $Id: tkMacOSXPort.h,v 1.10 2007/01/05 00:00:51 nijtmans Exp $ */ #ifndef _TKMACPORT @@ -119,12 +119,12 @@ */ #ifndef strcasecmp -extern int strcasecmp _ANSI_ARGS_((CONST char *s1, - CONST char *s2)); +extern int strcasecmp _ANSI_ARGS_((const char *s1, + const char *s2)); #endif #ifndef strncasecmp -extern int strncasecmp _ANSI_ARGS_((CONST char *s1, - CONST char *s2, size_t n)); +extern int strncasecmp _ANSI_ARGS_((const char *s1, + const char *s2, size_t n)); #endif /* diff --git a/macosx/tkMacOSXWm.c b/macosx/tkMacOSXWm.c index c250f92..8d47c4b 100644 --- a/macosx/tkMacOSXWm.c +++ b/macosx/tkMacOSXWm.c @@ -13,7 +13,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacOSXWm.c,v 1.45 2006/12/01 06:19:24 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.c,v 1.46 2007/01/05 00:00:52 nijtmans Exp $ */ #include "tkMacOSXInt.h" @@ -57,7 +57,7 @@ static int wmTracing = 0; static void TopLevelReqProc _ANSI_ARGS_((ClientData dummy, Tk_Window tkwin)); -static Tk_GeomMgr wmMgrType = { +static const Tk_GeomMgr wmMgrType = { "wm", /* name */ TopLevelReqProc, /* requestProc */ (Tk_GeomLostSlaveProc *) NULL, /* lostSlaveProc */ diff --git a/macosx/tkMacOSXWm.h b/macosx/tkMacOSXWm.h index 7382dcf..9e45a84 100644 --- a/macosx/tkMacOSXWm.h +++ b/macosx/tkMacOSXWm.h @@ -50,7 +50,7 @@ * software in accordance with the terms specified in this * license. * - * RCS: @(#) $Id: tkMacOSXWm.h,v 1.6 2006/03/24 14:58:01 das Exp $ + * RCS: @(#) $Id: tkMacOSXWm.h,v 1.7 2007/01/05 00:00:51 nijtmans Exp $ */ #ifndef _TKMACWM @@ -218,7 +218,7 @@ typedef struct TkWmInfo { ProtocolHandler *protPtr; /* First in list of protocol handlers for * this window (NULL means none). */ int cmdArgc; /* Number of elements in cmdArgv below. */ - CONST char **cmdArgv; /* Array of strings to store in the + const char **cmdArgv; /* Array of strings to store in the * WM_COMMAND property. NULL means nothing * available. */ char *clientMachine; /* String to store in WM_CLIENT_MACHINE |