diff options
author | joye <joye> | 2014-04-24 18:01:08 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-24 18:01:08 (GMT) |
commit | 8056a0ae90bf1b22da30287f31e73209b7eb9e53 (patch) | |
tree | d71ab09e8b364c97bbce33e74143ba7827ad989c /src/bltSwitch.C | |
parent | 5e5fcf5eda29bc13f3826ca392a9965f7019b610 (diff) | |
download | blt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.zip blt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.tar.gz blt-8056a0ae90bf1b22da30287f31e73209b7eb9e53.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltSwitch.C')
-rw-r--r-- | src/bltSwitch.C | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bltSwitch.C b/src/bltSwitch.C index a786708..22619a1 100644 --- a/src/bltSwitch.C +++ b/src/bltSwitch.C @@ -31,6 +31,11 @@ #include <stdarg.h> #include <stdlib.h> +#include <iostream> +#include <sstream> +#include <iomanip> +using namespace std; + #include <tcl.h> extern "C" { @@ -283,8 +288,10 @@ static int DoSwitch(Tcl_Interp* interp, Blt_SwitchSpec *sp, break; default: + ostringstream str; + str << sp->type << ends; Tcl_AppendResult(interp, "bad switch table: unknown type \"", - Blt_Itoa(sp->type), "\"", (char *)NULL); + str.str().c_str(), "\"", NULL); return TCL_ERROR; } sp++; |