summaryrefslogtreecommitdiffstats
path: root/ds9/win
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-01-18 18:23:06 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-01-18 18:23:06 (GMT)
commitbf0cc9887939cac3d9b488fdfd8180d5bef851ab (patch)
treeb92b47d5935345436363ef0b661199545bec40b1 /ds9/win
parenta51d63de1a6b963f9671367831e51aaa5bc9474a (diff)
downloadblt-bf0cc9887939cac3d9b488fdfd8180d5bef851ab.zip
blt-bf0cc9887939cac3d9b488fdfd8180d5bef851ab.tar.gz
blt-bf0cc9887939cac3d9b488fdfd8180d5bef851ab.tar.bz2
clean up internal_error
Diffstat (limited to 'ds9/win')
-rw-r--r--ds9/win/ds9.C9
1 files changed, 1 insertions, 8 deletions
diff --git a/ds9/win/ds9.C b/ds9/win/ds9.C
index f66d1f7..e1a6b59 100644
--- a/ds9/win/ds9.C
+++ b/ds9/win/ds9.C
@@ -49,14 +49,6 @@ extern "C" {
int Tkwin32_Init(Tcl_Interp*);
}
-Tcl_Interp *global_interp;
-
-void internalError(const char* msg)
-{
- Tcl_SetVar2(global_interp, "ds9", "msg", msg, TCL_GLOBAL_ONLY);
- Tcl_SetVar2(global_interp, "ds9", "msg,level", "error", TCL_GLOBAL_ONLY);
-}
-
#define PATHSIZE 2048
int SAOLocalMainHook(int* argcPtr, char*** argvPtr)
{
@@ -106,6 +98,7 @@ int SAOLocalMainHook(int* argcPtr, char*** argvPtr)
return TCL_OK;
}
+extern Tcl_Interp *global_interp;
int SAOAppInit(Tcl_Interp *interp)
{
// save interp for cputs function