diff options
author | jenglish <jenglish@flightlab.com> | 2012-07-02 17:45:04 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2012-07-02 17:45:04 (GMT) |
commit | 1c4e68215108b32cdbd6ef93ab1681e5a3f71bc9 (patch) | |
tree | c0f6f46f3d226c5465e331c235f6122d73b6ac8f /generic/ttk | |
parent | 5d65c669981e6af1b31c24510901a7f5fe31736a (diff) | |
parent | 51c192d71c89343815510f453d25f163850e9341 (diff) | |
download | tk-1c4e68215108b32cdbd6ef93ab1681e5a3f71bc9.zip tk-1c4e68215108b32cdbd6ef93ab1681e5a3f71bc9.tar.gz tk-1c4e68215108b32cdbd6ef93ab1681e5a3f71bc9.tar.bz2 |
ttk::*: Ensure that all tables passed to Tcl_GetIndexFromObj{Struct}
are statically allocated. Caught by Michael Kirkham.
Diffstat (limited to 'generic/ttk')
-rw-r--r-- | generic/ttk/ttkImage.c | 2 | ||||
-rw-r--r-- | generic/ttk/ttkPanedwindow.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generic/ttk/ttkImage.c b/generic/ttk/ttkImage.c index bf313a9..0de5fc0 100644 --- a/generic/ttk/ttkImage.c +++ b/generic/ttk/ttkImage.c @@ -314,7 +314,7 @@ Ttk_CreateImageElement( const char *elementName, int objc, Tcl_Obj *const objv[]) { - const char *optionStrings[] = + static const char *optionStrings[] = { "-border","-height","-padding","-sticky","-width",NULL }; enum { O_BORDER, O_HEIGHT, O_PADDING, O_STICKY, O_WIDTH }; diff --git a/generic/ttk/ttkPanedwindow.c b/generic/ttk/ttkPanedwindow.c index 065774e..b301372 100644 --- a/generic/ttk/ttkPanedwindow.c +++ b/generic/ttk/ttkPanedwindow.c @@ -713,7 +713,7 @@ static int PanedForgetCommand( static int PanedIdentifyCommand( void *recordPtr, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[]) { - const char *whatTable[] = { "element", "sash", NULL }; + static const char *whatTable[] = { "element", "sash", NULL }; enum { IDENTIFY_ELEMENT, IDENTIFY_SASH }; int what = IDENTIFY_SASH; Paned *pw = recordPtr; |