diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-18 18:08:37 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-04-18 18:08:37 (GMT) |
commit | 95c5b39b2e335c0fc08a25281ad9097a29aee1ae (patch) | |
tree | bab392895ed17f917311f2fb0119304a49a10671 /generic/tkAtom.c | |
parent | 15bcec02d97d8789fa796cabdc76859618f22387 (diff) | |
download | tk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.zip tk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.tar.gz tk-95c5b39b2e335c0fc08a25281ad9097a29aee1ae.tar.bz2 |
make some more internal tables CONST
Diffstat (limited to 'generic/tkAtom.c')
-rw-r--r-- | generic/tkAtom.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/tkAtom.c b/generic/tkAtom.c index f94af81..108e989 100644 --- a/generic/tkAtom.c +++ b/generic/tkAtom.c @@ -22,7 +22,7 @@ * They should match those found in xatom.h */ -static char * atomNameArray[] = { +static CONST char *atomNameArray[] = { "PRIMARY", "SECONDARY", "ARC", "ATOM", "BITMAP", "CARDINAL", "COLORMAP", "CURSOR", "CUT_BUFFER0", @@ -199,7 +199,7 @@ AtomInit(dispPtr) for (atom = 1; atom <= XA_LAST_PREDEFINED; atom++) { hPtr = Tcl_FindHashEntry(&dispPtr->atomTable, (char *) atom); if (hPtr == NULL) { - char *name; + CONST char *name; int new; name = atomNameArray[atom - 1]; |