summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-19 09:55:18 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-06-19 09:55:18 (GMT)
commite8469505b13e2af380977e581f42402073a2136f (patch)
tree047c7883c2e3add51b74078a8e69f0012cc4645c /unix
parentc8f0062c64f9fc019a92e9bbc8918aa3e4ba1571 (diff)
downloadtk-e8469505b13e2af380977e581f42402073a2136f.zip
tk-e8469505b13e2af380977e581f42402073a2136f.tar.gz
tk-e8469505b13e2af380977e581f42402073a2136f.tar.bz2
SetOptions.3: minor doc fix
make various other tables CONST (All backported from Tk 8.6)
Diffstat (limited to 'unix')
-rw-r--r--unix/tkUnixSelect.c2
-rw-r--r--unix/tkUnixWm.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/unix/tkUnixSelect.c b/unix/tkUnixSelect.c
index 5eedd5d..17ba36c 100644
--- a/unix/tkUnixSelect.c
+++ b/unix/tkUnixSelect.c
@@ -1414,7 +1414,7 @@ SelCvtToX(string, type, tkwin, numLongsPtr)
int *numLongsPtr; /* Number of 32-bit words contained in the
* result. */
{
- const char **field;
+ CONST char **field;
int numFields, i;
long *propPtr;
diff --git a/unix/tkUnixWm.c b/unix/tkUnixWm.c
index 1ab5980..cb5b643 100644
--- a/unix/tkUnixWm.c
+++ b/unix/tkUnixWm.c
@@ -4487,7 +4487,7 @@ UpdateTitle(winPtr)
{
WmInfo *wmPtr = winPtr->wmInfoPtr;
Atom XA_UTF8_STRING = Tk_InternAtom((Tk_Window) winPtr, "UTF8_STRING");
- const char *string;
+ CONST char *string;
Tcl_DString ds;
/*
@@ -4502,7 +4502,7 @@ UpdateTitle(winPtr)
XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window,
Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_NAME"),
XA_UTF8_STRING, 8, PropModeReplace,
- (const unsigned char*)string, (signed int)strlen(string));
+ (CONST unsigned char*)string, (signed int)strlen(string));
/*
* Set icon name:
@@ -4516,7 +4516,7 @@ UpdateTitle(winPtr)
XChangeProperty(winPtr->display, wmPtr->wrapperPtr->window,
Tk_InternAtom((Tk_Window) winPtr, "_NET_WM_ICON_NAME"),
XA_UTF8_STRING, 8, PropModeReplace,
- (const unsigned char*)wmPtr->iconName,
+ (CONST unsigned char*)wmPtr->iconName,
(signed int)strlen(wmPtr->iconName));
}
}
@@ -4969,7 +4969,7 @@ GetNetWmType(winPtr)
&bytesAfter, &propertyValue)) {
atoms = (Atom *)propertyValue;
for (n = 0; n < count; ++n) {
- const char *name = Tk_GetAtomName(tkwin, atoms[n]);
+ CONST char *name = Tk_GetAtomName(tkwin, atoms[n]);
if (strncmp("_NET_WM_WINDOW_TYPE_", name, 20) == 0) {
Tcl_ExternalToUtfDString(NULL, name+20, -1, &ds);
Tcl_UtfToLower(Tcl_DStringValue(&ds));